Share via


SyncId.GetGuidId Method

Gets a GUID sync ID.

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

Syntax

'Declaration
Public Function GetGuidId As Guid
'Usage
Dim instance As SyncId
Dim returnValue As Guid

returnValue = instance.GetGuidId()
public Guid GetGuidId()
public:
Guid GetGuidId()
member GetGuidId : unit -> Guid 
public function GetGuidId() : Guid

Return Value

Type: System.Guid
The sync ID if it is a fixed-length GUID; otherwise, throws InvalidOperationException.

Exceptions

Exception Condition
InvalidOperationException

This SyncId is variable length, or it represents an id longer or shorter than 16 bytes.

See Also

Reference

SyncId Class

Microsoft.Synchronization Namespace