Search Results for

    Show / Hide Table of Contents

    Interface ISettableManagedAccessor

    Represents an object whose managed accessor can be set. This interface is used only internally for now.

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

    Methods

    | Improve this Doc View Source

    SetManagedAccessor(IRealmAccessor, IRealmObjectHelper, Boolean, Boolean)

    Sets the accessor for the newly managed object and possibly adds the object to the realm.

    Declaration
    void SetManagedAccessor(IRealmAccessor accessor, IRealmObjectHelper helper = null, bool update = false, bool skipDefaults = false)
    Parameters
    Type Name Description
    IRealmAccessor accessor

    The accessor to set.

    Realms.Weaving.IRealmObjectHelper helper

    TheRealms.Weaving.IRealmObjectHelper implementation to use for copying the object to realm.

    Boolean update

    If set to true, update the existing value (if any). Otherwise, try to add and throw if an object with the same primary key already exists.

    Boolean skipDefaults

    If set to true will not invoke the setters of properties that have default values. Generally, should be true for newly created objects and false when updating existing ones.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2020 Realm
    Generated by DocFX