Class SyncConfiguration
A SyncConfiguration is used to setup a Realm that can be synchronized between devices using the Realm Object Server. A valid User is required to create a SyncConfiguration.
Inherited Members
Namespace: Realms.Sync
Assembly: Realm.Sync.dll
Syntax
[Obsolete("Use FullSyncConfiguration or QueryBasedSyncConfiguration instead.")]
public class SyncConfiguration : SyncConfigurationBase
Constructors
| Improve this Doc View SourceSyncConfiguration(User, Uri, String)
Initializes a new instance of the SyncConfiguration class.
Declaration
public SyncConfiguration(User user = null, Uri serverUri = null, string optionalPath = null)
Parameters
Type | Name | Description |
---|---|---|
User | user | A valid User. If not provided, the currently logged-in user will be used. |
Uri | serverUri | A unique Uri that identifies the Realm. In URIs, |
String | optionalPath | Path to the realm, must be a valid full path for the current platform, relative subdirectory, or just filename. |
Properties
| Improve this Doc View SourceIsPartial
Gets or sets a value indicating whether this Realm should be opened in 'query-based synchronization' mode. Query-based synchronization mode means that no objects are synchronized from the remote Realm except those matching queries that the user explicitly specifies.
Declaration
[Obsolete("Create QueryBasedSyncConfiguration instead.")]
public bool IsPartial { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceSetFeatureToken(String)
Sets the feature token, associated with your edition. You only need to call it if you're using a professional or higher edition and only on platforms where features are disabled for lower editions.
Declaration
[Obsolete("Feature tokens are no longer necessary to access Professional or Enterprise API.")]
public static void SetFeatureToken(string token)
Parameters
Type | Name | Description |
---|---|---|
String | token | The feature token provided to you by the Realm team. |