SyncId Class
Represents an identifier for an item, change unit, or replica.
Inheritance Hierarchy
System.Object
Microsoft.Synchronization.SyncId
Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class SyncId _
Implements IComparable, IEquatable(Of SyncId), _
ISerializable
'Usage
Dim instance As SyncId
[SerializableAttribute]
public class SyncId : IComparable, IEquatable<SyncId>,
ISerializable
[SerializableAttribute]
public ref class SyncId : IComparable, IEquatable<SyncId^>,
ISerializable
[<SerializableAttribute>]
type SyncId =
class
interface IComparable
interface IEquatable<SyncId>
interface ISerializable
end
public class SyncId implements IComparable, IEquatable<SyncId>, ISerializable
The SyncId type exposes the following members.
Constructors
Name | Description | |
---|---|---|
SyncId(Byte) | Initializes a new instance of the SyncId class that contains the specified ID. | |
SyncId(Guid) | Initializes a new instance of the SyncId class that contains the specified GUID. | |
SyncId(String) | Initializes a new instance of the SyncId class that contains the specified ID. | |
SyncId(SyncGlobalId) | Initializes a new instance of the SyncId class that contains the specified global ID. | |
SyncId(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. | |
SyncId(SerializationInfo, StreamingContext) | Initializes a new instance of the SyncId class by using serialized data. |
Top
Properties
Name | Description | |
---|---|---|
IsVariableLength | Gets a value that indicates whether the ID is variable length. | |
RawId | Gets the raw ID data in a byte array. |
Top
Methods
Name | Description | |
---|---|---|
CompareTo | Compares this object with another SyncId object. | |
Equals(Object) | Determines whether the specified SyncId object is equal to this object. (Overrides Object.Equals(Object).) | |
Equals(SyncId) | Determines whether the specified SyncId object is equal to this object. | |
Finalize | (Inherited from Object.) | |
GetByteId | Gets a 1-byte sync ID. | |
GetGuidId | Gets a GUID sync ID. | |
GetHashCode | Computes a hash code suitable for use in hashing algorithms and data structures, such as a hash table. (Overrides Object.GetHashCode().) | |
GetObjectData | Serializes the object data to the specified SerializationInfo object. | |
GetStringId | Gets a string sync ID. | |
GetSyncGlobalId | Gets a SyncGlobalId sync ID. | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | Returns a string that represents the sync ID. (Overrides Object.ToString().) |
Top
Operators
Name | Description | |
---|---|---|
Equality | Determines whether the two specified SyncId objects are equal. | |
GreaterThan | Determines whether idX is greater than idY. | |
Inequality | Determines whether the two specified SyncId objects are not equal. | |
LessThan | Determines whether idX is less than idY. |
Top
Remarks
The ID length must be greater than 0 and no greater than UInt16.MaxValue.
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.