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.
Inherited Members
Namespace: Realms
Assembly: Realm.dll
Syntax
public class InMemoryConfiguration : RealmConfigurationBase
Constructors
| Improve this Doc View SourceInMemoryConfiguration(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 SourceEncryptionKey
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
| Improve this Doc View SourceIdentifier
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. |