Show / Hide Table of Contents

    Struct Property

    Describes a single property of a class stored in a Realm.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.GetType()
    Object.ReferenceEquals(Object, Object)
    Namespace:Realms.Schema
    Assembly:Realm.dll
    Syntax
    public struct Property

    Properties

    | Improve this Doc View Source

    IsIndexed

    Gets or sets a value indicating whether this Property is indexed.

    Declaration
    public bool IsIndexed { get; set; }
    Property Value
    Type Description
    Boolean

    true if the property should be indexed (the matching property in the class definition is marked with IndexedAttribute); false otherwise.

    | Improve this Doc View Source

    IsNullable

    Gets or sets a value indicating whether this Property can be null.

    Declaration
    [Obsolete("Apply the PropertyType.Nullable flag to a property's Type to control its nullability.")]
    public bool IsNullable { get; set; }
    Property Value
    Type Description
    Boolean

    true if the property type allows null values and the matching property in the class definition is not marked with RequiredAttribute; false otherwise.

    | Improve this Doc View Source

    IsPrimaryKey

    Gets or sets a value indicating whether this Property is primary key.

    Declaration
    public bool IsPrimaryKey { get; set; }
    Property Value
    Type Description
    Boolean

    true if the property is primary key (the matching property in the class definition is marked with PrimaryKeyAttribute); false otherwise.

    | Improve this Doc View Source

    LinkOriginPropertyName

    Gets or sets the name of the property that links to the model containing this LinkingObjects property.

    Declaration
    public string LinkOriginPropertyName { get; set; }
    Property Value
    Type Description
    String

    The name of the linking property.

    | Improve this Doc View Source

    Name

    Gets or sets the name of the property.

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    String

    The name of the property.

    | Improve this Doc View Source

    ObjectType

    Gets or sets the type of the object.

    Declaration
    public string ObjectType { get; set; }
    Property Value
    Type Description
    String

    The type of the object.

    | Improve this Doc View Source

    Type

    Gets or sets the type of the property.

    Declaration
    public PropertyType Type { get; set; }
    Property Value
    Type Description
    PropertyType

    The type of the property.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2017 Realm
    Generated by DocFX