Search Results for

    Show / Hide Table of Contents

    Class RealmSyncExtensions

    A set of extension methods that provide Sync-related functionality on top of Realm classes.

    Inheritance
    Object
    RealmSyncExtensions
    Namespace: Realms.Sync
    Assembly: Realm.dll
    Syntax
    public static class RealmSyncExtensions

    Methods

    | Improve this Doc View Source

    GetSession(Realm)

    Gets the Session for the realm file behind this Realm.

    Declaration
    [Obsolete("Use Realm.SyncSession instead.")]
    public static Session GetSession(this Realm realm)
    Parameters
    Type Name Description
    Realm realm

    An instance of the Realm class created with a SyncConfigurationBase object.

    Returns
    Type Description
    Session

    The Session that is responsible for synchronizing with MongoDB Atlas.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if realm is null.

    ArgumentException

    Thrown if the realm was not created with a SyncConfigurationBase object.

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