Public description of a class stored in a Realm, as a collection of managed Property objects.
More...
|
int | Count => _properties.Count |
| Gets the number of properties in the schema, which is the persistent properties from the original class. More...
|
|
|
string | Name [get] |
| Gets the name of the original class declaration from which the schema was built. More...
|
|
Public description of a class stored in a Realm, as a collection of managed Property objects.
§ FromType()
Creates a schema describing a RealmObject subclass in terms of its persisted members.
- Exceptions
-
ArgumentException | Thrown if no class Type is provided or if it doesn't descend directly from RealmObject. |
- Returns
- An ObjectSchema describing the specified Type.
- Parameters
-
type | Type of a RealmObject descendant for which you want a schema. |
Referenced by RealmSchema.GetEnumerator().
§ GetEnumerator()
Property enumerator factory for an iterator to be called explicitly or used in a foreach loop.
- Returns
- An enumerator over the list of Property instances described in the schema.
§ TryFindProperty()
bool TryFindProperty |
( |
string |
name, |
|
|
out Property |
property |
|
) |
| |
Looks for a Property by Name. Failure to find means it is not regarded as a property to persist in a Realm.
- Returns
true
, if a property was found matching Name, false
otherwise.
- Parameters
-
name | Name of the Property to match exactly. |
property | Property returned only if found matching Name. |
§ Count
int Count => _properties.Count |
Gets the number of properties in the schema, which is the persistent properties from the original class.
§ Name
Gets the name of the original class declaration from which the schema was built.