DbSyncSession Class

Represents a synchronization session. The DbSyncSession object exists for the duration of the synchronization session.

Inheritance Hierarchy

System.Object
  Microsoft.Synchronization.Data.DbSyncSession

Namespace:  Microsoft.Synchronization.Data
Assembly:  Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class DbSyncSession
'Usage
Dim instance As DbSyncSession
[SerializableAttribute]
public class DbSyncSession
[SerializableAttribute]
public ref class DbSyncSession
[<SerializableAttribute>]
type DbSyncSession =  class end
public class DbSyncSession

The DbSyncSession type exposes the following members.

Constructors

  Name Description
Public method DbSyncSession Initializes a new instance of the DbSyncSession class.

Top

Properties

  Name Description
Public property SessionId Gets the GUID that Sync Framework uses to identify the synchronization session.
Public property SyncParameters Gets or sets a SyncParameterCollection of SyncParameter objects. These objects are available at the peer as session variables.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Fields

  Name Description
Public fieldStatic member SyncCheckConcurrency Returns the string sync_check_concurrency. This field is constant.
Public fieldStatic member SyncCreatePeerKey Returns the string sync_create_peer_key. This field is constant.
Public fieldStatic member SyncCreatePeerTimestamp Returns the string sync_create_peer_timestamp. This field is constant.
Public fieldStatic member SyncForceWrite Returns the string sync_force_write. This field is constant.
Public fieldStatic member SyncInitialize Returns the string sync_initialize. This field is constant.
Public fieldStatic member SyncMetadataOnly Returns the string sync_metadata_only. This field is constant.
Public fieldStatic member SyncMinTimestamp Returns the string sync_min_timestamp. This field is constant.
Public fieldStatic member SyncNewTimestamp Returns the string sync_new_timestamp. This field is constant.
Public fieldStatic member SyncRowCount Returns the string sync_row_count. This field is constant.
Public fieldStatic member SyncRowCreateTimestamp Returns the string sync_row_create_timestamp. This field is constant.
Public fieldStatic member SyncRowIsTombstone Returns the string sync_row_is_tombstone. This field is constant.
Public fieldStatic member SyncRowTimestamp Returns the string sync_row_timestamp. This field is constant.
Public fieldStatic member SyncScopeCleanupKnowledge Returns the string sync_scope_cleanup_knowledge. This field is constant.
Public fieldStatic member SyncScopeCleanupTimestamp Returns the string sync_scope_cleanup_timestamp. This field is constant.
Public fieldStatic member SyncScopeId Returns the string sync_scope_id. This field is constant.
Public fieldStatic member SyncScopeKnowledge Returns the string sync_scope_knowledge. This field is constant.
Public fieldStatic member SyncScopeLocalId Returns the string sync_scope_local_id. This field is constant.
Public fieldStatic member SyncScopeName Returns the string sync_scope_name. This field is constant.
Public fieldStatic member SyncScopeRestoreCount Returns the string sync_scope_restore_count. This field is constant.
Public fieldStatic member SyncScopeTimestamp Returns the string sync_scope_timestamp. This field is constant.
Public fieldStatic member SyncSessionId Returns the string sync_session_id. This field is constant.
Public fieldStatic member SyncSharedScopeName Returns the string sync_shared_scope_name. This field is constant.
Public fieldStatic member SyncStageName Returns the string sync_stage_name. This field is constant.
Public fieldStatic member SyncTableName Returns the string sync_table_name. This field is constant.
Public fieldStatic member SyncUpdatePeerKey Returns the string sync_update_peer_key. This field is constant.
Public fieldStatic member SyncUpdatePeerTimestamp Returns the string sync_update_peer_timestamp. This field is constant.

Top

Remarks

The DbSyncSession object is sent to the peer in every call and provides a way to transfer built-in session variables. For more information about session variables, see How to: Use Session Variables for Collaborative Synchronization (Non-SQL Server).

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Synchronization.Data Namespace