Search Results for

    Show / Hide Table of Contents

    Class InMemoryConfiguration

    A Realm configuration specifying settings for an in-memory Realm. When all in-memory instances with the same identifier are disposed or go out of scope, all data in that Realm is deleted.

    Inheritance
    Object
    RealmConfigurationBase
    InMemoryConfiguration
    Inherited Members
    RealmConfigurationBase.DefaultRealmName
    RealmConfigurationBase.DatabasePath
    RealmConfigurationBase.FallbackPipePath
    RealmConfigurationBase.IsDynamic
    RealmConfigurationBase.ObjectClasses
    RealmConfigurationBase.Schema
    RealmConfigurationBase.GetPathToRealm(String)
    RealmConfigurationBase.SchemaVersion
    RealmConfigurationBase.MaxNumberOfActiveVersions
    Namespace: Realms
    Assembly: Realm.dll
    Syntax
    public class InMemoryConfiguration : RealmConfigurationBase

    Constructors

    | Improve this Doc View Source

    InMemoryConfiguration(String)

    Initializes a new instance of the InMemoryConfiguration class with a specified identifier.

    Declaration
    public InMemoryConfiguration(string identifier)
    Parameters
    Type Name Description
    String identifier

    A string that will uniquely identify this in-memory Realm.

    Remarks

    Different instances with the same identifier will see the same data. When all instances with a particular identifier have been removed, the data will be deleted and no longer accessible. The identifier must not be the same as the file name of a persisted Realm.

    Properties

    | Improve this Doc View Source

    EncryptionKey

    Gets or sets the key, used to encrypt the entire Realm. Once set, must be specified each time the file is used.

    Declaration
    [Obsolete("Encryption is not supported for in-memory realms. This property will be removed in a future version.")]
    public override byte[] EncryptionKey { get; set; }
    Property Value
    Type Description
    Byte[]

    Full 64byte (512bit) key for AES-256 encryption.

    Overrides
    RealmConfigurationBase.EncryptionKey
    | Improve this Doc View Source

    Identifier

    Gets a value indicating the identifier of the Realm that will be opened with this InMemoryConfiguration.

    Declaration
    public string Identifier { get; }
    Property Value
    Type Description
    String

    The identifier for this configuration.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2020 Realm
    Generated by DocFX