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
| Edit this page 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
| Edit this page 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. |