Share via


SyncId Constructor (array<Byte , Boolean)

Initializes a new instance of the SyncId class that contains the specified raw ID and a value that indicates whether the ID is fixed length or variable length.

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

Syntax

'Declaration
Public Sub New ( _
    rawId As Byte(), _
    isVariableLength As Boolean _
)
'Usage
Dim rawId As Byte()
Dim isVariableLength As Boolean

Dim instance As New SyncId(rawId, isVariableLength)
public SyncId(
    byte[] rawId,
    bool isVariableLength
)
public:
SyncId(
    array<unsigned char>^ rawId, 
    bool isVariableLength
)
new : 
        rawId:byte[] * 
        isVariableLength:bool -> SyncId
public function SyncId(
    rawId : byte[], 
    isVariableLength : boolean
)

Parameters

  • isVariableLength
    Type: System.Boolean
    true if this is a variable length ID; otherwise, false.

Exceptions

Exception Condition
ArgumentOutOfRangeException

rawId has an invalid length or is too short or too long for the value of isVariableLength.

ArgumentNullException

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

Remarks

This form of the constructor stores the ID data exactly as specified.

See Also

Reference

SyncId Class

SyncId Overload

Microsoft.Synchronization Namespace