SqlCeClientSyncProvider.ClientId Property
Gets or sets the GUID that Sync Framework uses to identify the client database.
Namespace: Microsoft.Synchronization.Data.SqlServerCe
Assembly: Microsoft.Synchronization.Data.SqlServerCe (in Microsoft.Synchronization.Data.SqlServerCe.dll)
Syntax
'Declaration
Public Overrides Property ClientId As Guid
Get
Set
'Usage
Dim instance As SqlCeClientSyncProvider
Dim value As Guid
value = instance.ClientId
instance.ClientId = value
public override Guid ClientId { get; set; }
public:
virtual property Guid ClientId {
Guid get () override;
void set (Guid value) override;
}
abstract ClientId : Guid with get, set
override ClientId : Guid with get, set
override function get ClientId () : Guid
override function set ClientId (value : Guid)
Property Value
Type: System.Guid
A GUID that identifies the client database.
Exceptions
Exception | Condition |
---|---|
DataSyncException | Another transaction is in progress. |
Remarks
By default, Sync Framework identifies clients by using a GUID. You can map this GUID to an integer value so that you can use integers to identify clients at the server. For more information, see How to: Use Session Variables.