Share via


SyncId Constructor (SyncGlobalId)

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

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

Syntax

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

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

Parameters

Exceptions

Exception Condition
ArgumentNullException

id is a null reference (Nothing in Visual Basic).

Remarks

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

See Also

Reference

SyncId Class

SyncId Overload

Microsoft.Synchronization Namespace