ClockVector Class
Represents a clock vector in a knowledge structure. This class cannot be inherited.
Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (in microsoft.synchronization.dll)
Syntax
'Declaration
<XmlRootAttribute(Namespace:="https://schemas.microsoft.com/2009/04/sync/", ElementName:="clockVector")> _
<DefaultMemberAttribute("Item")> _
Public NotInheritable Class ClockVector
Implements IClockVector, IList(Of IClockVectorElement), _
ICollection(Of IClockVectorElement), IEnumerable(Of IClockVectorElement), _
IEnumerable, IXmlSerializable
'Usage
Dim instance As ClockVector
[XmlRootAttribute(Namespace="https://schemas.microsoft.com/2009/04/sync/", ElementName="clockVector")]
[DefaultMemberAttribute("Item")]
public sealed class ClockVector : IClockVector, IList<IClockVectorElement>,
ICollection<IClockVectorElement>, IEnumerable<IClockVectorElement>, IEnumerable,
IXmlSerializable
[XmlRootAttribute(Namespace=L"https://schemas.microsoft.com/2009/04/sync/", ElementName=L"clockVector")]
[DefaultMemberAttribute(L"Item")]
public ref class ClockVector sealed : IClockVector, IList<IClockVectorElement^>,
ICollection<IClockVectorElement^>, IEnumerable<IClockVectorElement^>, IEnumerable,
IXmlSerializable
/** @attribute XmlRootAttribute(Namespace="https://schemas.microsoft.com/2009/04/sync/", ElementName="clockVector") */
/** @attribute DefaultMemberAttribute("Item") */
public final class ClockVector implements IClockVector, IList<IClockVectorElement>,
ICollection<IClockVectorElement>, IEnumerable<IClockVectorElement>, IEnumerable,
IXmlSerializable
XmlRootAttribute(Namespace="https://schemas.microsoft.com/2009/04/sync/", ElementName="clockVector")
DefaultMemberAttribute("Item")
public final class ClockVector implements IClockVector, IList<IClockVectorElement>,
ICollection<IClockVectorElement>, IEnumerable<IClockVectorElement>, IEnumerable,
IXmlSerializable
Remarks
A clock vector defines the changes that are contained in a knowledge structure by using a list of ClockVectorElement objects. A ClockVectorElement object exists for each replica that has made a change that is contained in the knowledge. A change made by a particular replica is defined to be contained in the knowledge if the tick count for the change occurs between 0 and the tick count contained in ClockVectorElement that tracks that replica.
The members of IXmlSerializable and IEnumerable are implemented explicitly. Code that accesses them must first cast the ClockVector object to the IXmlSerializable or IEnumerable interface by using the casting operator or the as keyword.
Inheritance Hierarchy
System.Object
Microsoft.Synchronization.ClockVector
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.