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
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace:Realms.Sync
    Assembly:Realm.Sync.dll
    Syntax
    [Browsable(false)]
    public static class RealmSyncExtensions

    Methods

    | Improve this Doc View Source

    GetSession(Realm)

    Gets the Session for the realm file behind this Realm.

    Declaration
    public static Session GetSession(this Realm realm)
    Parameters
    Type Name Description
    Realm realm

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

    Returns
    Type Description
    Session

    The Session that is responsible for synchronizing with a Realm Object Server instance.

    Exceptions
    Type Condition
    ArgumentNullException

    Thrown if realm is null.

    ArgumentException

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

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