SyncGlobalId Class

Represents an identifier for an item that is unique throughout the synchronization community.

Inheritance Hierarchy

System.Object
  Microsoft.Synchronization.SyncGlobalId

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class SyncGlobalId _
    Implements IComparable, IEquatable(Of SyncGlobalId)
'Usage
Dim instance As SyncGlobalId
[SerializableAttribute]
public class SyncGlobalId : IComparable, 
    IEquatable<SyncGlobalId>
[SerializableAttribute]
public ref class SyncGlobalId : IComparable, 
    IEquatable<SyncGlobalId^>
[<SerializableAttribute>]
type SyncGlobalId =  
    class
        interface IComparable
        interface IEquatable<SyncGlobalId>
    end
public class SyncGlobalId implements IComparable, IEquatable<SyncGlobalId>

The SyncGlobalId type exposes the following members.

Constructors

  Name Description
Public method SyncGlobalId(Byte[]) Initializes a new instance of the SyncGlobalId class by using serialized data.
Public method SyncGlobalId(UInt64, Guid) Initializes a new instance of the SyncGlobalId class that contains the specified prefix and GUID.

Top

Properties

  Name Description
Public property Prefix Gets the prefix component of the global ID.
Public property UniqueId Gets the GUID component of the global ID.

Top

Methods

  Name Description
Public method CompareTo Compares this object with another SyncGlobalId object.
Public method Equals(Object) Determines whether the specified SyncGlobalId object is equal to this object. (Overrides Object.Equals(Object).)
Public method Equals(SyncGlobalId) Determines whether the specified SyncGlobalId object is equal to this object.
Protected method Finalize (Inherited from Object.)
Public method GetBytes Serializes the global ID value to an array of bytes.
Public method GetHashCode Computes a hash code that is suitable for use in hashing algorithms and data structures, such as a hash table. (Overrides Object.GetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns a string that represents the global ID. (Overrides Object.ToString().)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether the two specified SyncGlobalId objects are equal.
Public operatorStatic member GreaterThan Determines whether idX is greater than idY.
Public operatorStatic member Inequality Determines whether the two specified SyncGlobalId objects are not equal.
Public operatorStatic member LessThan Determines whether idX is less than idY.

Top

Remarks

Item IDs are not required to be in this format. However, for systems that do not have an intrinsic unique ID for items, we recommend that you use this format.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Synchronization Namespace