次の方法で共有


ClockVector クラス

ナレッジ構造のクロック ベクターを表します。このクラスは継承できません。

名前空間: Microsoft.Synchronization
アセンブリ: Microsoft.Synchronization (microsoft.synchronization.dll 内)

構文

'宣言
<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
'使用
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

解説

クロック ベクターは、ClockVectorElement オブジェクトの一覧を使用してナレッジ構造に含まれる変更を定義します。ClockVectorElement オブジェクトは、ナレッジに含まれている変更を加えた各レプリカに 1 つ存在します。特定のレプリカが加えた変更は、変更のティック数が 0 からそのレプリカを追跡する ClockVectorElement に含まれているティック数までの間で発生する場合に、ナレッジに含まれているものとして定義されます。

IXmlSerializable および IEnumerable のメンバーは明示的に実装されます。これらにアクセスするコードではまず、キャスト演算子または as キーワードを使用して ClockVector オブジェクトを IXmlSerializable または IEnumerable インターフェイスにキャストする必要があります。

継承階層

System.Object
  Microsoft.Synchronization.ClockVector

スレッド セーフ

この型の public static (Visual Basic では Shared ) メンバーはすべて、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

参照

リファレンス

ClockVector メンバー
Microsoft.Synchronization 名前空間