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 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 |