Search Results for

    Show / Hide Table of Contents

    Interface IRealmObjectBase

    An interface that is implemented by all objects that can be persisted in Realm. This interface is used only internally for now.

    Inherited Members
    ISettableManagedAccessor.SetManagedAccessor(IRealmAccessor, IRealmObjectHelper, Boolean, Boolean)
    Namespace: Realms
    Assembly: Realm.dll
    Syntax
    public interface IRealmObjectBase : ISettableManagedAccessor

    Properties

    | Improve this Doc View Source

    Accessor

    Gets the accessor that encapsulates the methods and properties used by the object for its functioning.

    Declaration
    IRealmAccessor Accessor { get; }
    Property Value
    Type Description
    IRealmAccessor
    | Improve this Doc View Source

    BacklinksCount

    Gets the number of objects referring to this one via either a to-one or to-many relationship.

    Declaration
    int BacklinksCount { get; }
    Property Value
    Type Description
    Int32

    The number of objects referring to this one.

    | Improve this Doc View Source

    DynamicApi

    Gets an object encompassing the dynamic API for this Realm object instance.

    Declaration
    DynamicObjectApi DynamicApi { get; }
    Property Value
    Type Description
    DynamicObjectApi

    A Realms.Dynamic instance that wraps this Realm object.

    | Improve this Doc View Source

    IsFrozen

    Gets a value indicating whether this object is frozen. Frozen objects are immutable and will not update when writes are made to the Realm. Unlike live objects, frozen objects can be used across threads.

    Declaration
    bool IsFrozen { get; }
    Property Value
    Type Description
    Boolean

    true if the object is frozen and immutable; false otherwise.

    See Also
    Freeze<T>(T)
    | Improve this Doc View Source

    IsManaged

    Gets a value indicating whether the object has been associated with a Realm, either at creation or via Add<T>(T, Boolean).

    Declaration
    bool IsManaged { get; }
    Property Value
    Type Description
    Boolean

    true if object belongs to a Realm; false if standalone.

    | Improve this Doc View Source

    IsValid

    Gets a value indicating whether this object is managed and represents a row in the database. If a managed object has been removed from the Realm, it is no longer valid and accessing properties on it will throw an exception. Unmanaged objects are always considered valid.

    Declaration
    bool IsValid { get; }
    Property Value
    Type Description
    Boolean

    true if managed and part of the Realm or unmanaged; false if managed but deleted.

    | Improve this Doc View Source

    ObjectSchema

    Gets the ObjectSchema instance that describes how the Realm this object belongs to sees it.

    Declaration
    ObjectSchema ObjectSchema { get; }
    Property Value
    Type Description
    ObjectSchema

    A collection of properties describing the underlying schema of this object.

    | Improve this Doc View Source

    Realm

    Gets the Realm instance this object belongs to, or null if it is unmanaged.

    Declaration
    Realm Realm { get; }
    Property Value
    Type Description
    Realm

    The Realm instance this object belongs to.

    Extension Methods

    FrozenObjectsExtensions.Freeze<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2020 Realm
    Generated by DocFX