Share via


SyncId Constructor (Guid)

Initializes a new instance of the SyncId class that contains the specified GUID.

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

Syntax

'Declaration
Public Sub New ( _
    id As Guid _
)
'Usage
Dim id As Guid

Dim instance As New SyncId(id)
public SyncId(
    Guid id
)
public:
SyncId(
    Guid id
)
new : 
        id:Guid -> SyncId
public function SyncId(
    id : Guid
)

Parameters

Exceptions

Exception Condition
ArgumentOutOfRangeException

id is empty.

Remarks

This form of the constructor creates a fixed-length ID with an array containing the result of calling ToByteArray on id.

See Also

Reference

SyncId Class

SyncId Overload

Microsoft.Synchronization Namespace