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()
static ObjectSchema Realms.Schema.ObjectSchema.FromType |
( |
Type |
type | ) |
|
|
static |
§ GetEnumerator()
IEnumerator<Property> Realms.Schema.ObjectSchema.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 Realms.Schema.ObjectSchema.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 Realms.Schema.ObjectSchema.Count => _properties.Count |
Gets the number of properties in the schema, which is the persistent properties from the original class.
§ Name
string Realms.Schema.ObjectSchema.Name |
|
get |
Gets the name of the original class declaration from which the schema was built.