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.

    Namespace: Realms
    Assembly: Realm.dll
    Syntax
    public interface IRealmObjectBase

    Properties

    | Edit this page 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
    | Edit this page 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
    int

    The number of objects referring to this one.

    | Edit this page 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.

    | Edit this page 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
    bool

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

    See Also
    Freeze<T>(T)
    | Edit this page View Source

    IsManaged

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

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

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

    | Edit this page 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
    bool

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

    | Edit this page 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.

    | Edit this page 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)
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2020-2024 Realm
    Generated by DocFX