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 | |
---|---|---|
SyncGlobalId(Byte[]) | Initializes a new instance of the SyncGlobalId class by using serialized data. | |
SyncGlobalId(UInt64, Guid) | Initializes a new instance of the SyncGlobalId class that contains the specified prefix and GUID. |
Top
Properties
Name | Description | |
---|---|---|
Prefix | Gets the prefix component of the global ID. | |
UniqueId | Gets the GUID component of the global ID. |
Top
Methods
Name | Description | |
---|---|---|
CompareTo | Compares this object with another SyncGlobalId object. | |
Equals(Object) | Determines whether the specified SyncGlobalId object is equal to this object. (Overrides Object.Equals(Object).) | |
Equals(SyncGlobalId) | Determines whether the specified SyncGlobalId object is equal to this object. | |
Finalize | (Inherited from Object.) | |
GetBytes | Serializes the global ID value to an array of bytes. | |
GetHashCode | Computes a hash code that is suitable for use in hashing algorithms and data structures, such as a hash table. (Overrides Object.GetHashCode().) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | Returns a string that represents the global ID. (Overrides Object.ToString().) |
Top
Operators
Name | Description | |
---|---|---|
Equality | Determines whether the two specified SyncGlobalId objects are equal. | |
GreaterThan | Determines whether idX is greater than idY. | |
Inequality | Determines whether the two specified SyncGlobalId objects are not equal. | |
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.