Show / Hide Table of Contents

    Class QueryBasedSyncConfiguration

    A QueryBasedSyncConfiguration is used to setup a Realm that can be synchronized in "query-based" mode between devices using the Realm Object Server. Only objects that match the subscribed queries will be synchronized to the client.

    Inheritance
    Object
    RealmConfigurationBase
    SyncConfigurationBase
    QueryBasedSyncConfiguration
    Inherited Members
    SyncConfigurationBase.ServerUri
    SyncConfigurationBase.User
    SyncConfigurationBase.EnableSSLValidation
    SyncConfigurationBase.TrustedCAPath
    SyncConfigurationBase.OnProgress
    SyncConfigurationBase.LogLevel
    SyncConfigurationBase.CustomLogger
    SyncConfigurationBase.UserAgent
    SyncConfigurationBase.Initialize(UserPersistenceMode, Byte[], Boolean, String)
    SyncConfigurationBase.EnableSessionMultiplexing()
    RealmConfigurationBase.DefaultRealmName
    RealmConfigurationBase.DatabasePath
    RealmConfigurationBase.IsDynamic
    RealmConfigurationBase.ObjectClasses
    RealmConfigurationBase.GetPathToRealm(String)
    RealmConfigurationBase.SchemaVersion
    RealmConfigurationBase.EncryptionKey
    Namespace: Realms.Sync
    Assembly: Realm.dll
    Syntax
    public class QueryBasedSyncConfiguration : SyncConfigurationBase

    Constructors

    | Improve this Doc View Source

    QueryBasedSyncConfiguration(Uri, User, String)

    Initializes a new instance of the QueryBasedSyncConfiguration class.

    Declaration
    public QueryBasedSyncConfiguration(Uri serverUri = null, User user = null, string optionalPath = null)
    Parameters
    Type Name Description
    Uri serverUri

    A unique Uri that identifies the Realm. In URIs, ~ can be used as a placeholder for a user Id. If a relative Uri is provided, it will be resolved using the user's ServerUri as baseUri. If null is passed, a Uri will be constructed from the user's ServerUri, combined with /default.

    User user

    A valid User. If not provided, the currently logged-in user will be used.

    String optionalPath

    Path to the realm, must be a valid full path for the current platform, relative subdirectory, or just filename.

    See Also

    Query-based Synchronization docs.
    FullSyncConfiguration
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Realm
    Generated by DocFX