Dela via


ClockVector.Item Property

Gets or sets the element in the clock vector that is indicated by the value of index.

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

Syntax

'Declaration
Public Default Property Item ( _
    index As Integer _
) As IClockVectorElement
    Get
    Set
'Usage
Dim instance As ClockVector
Dim index As Integer
Dim value As IClockVectorElement

value = instance(index)

instance(index) = value
public IClockVectorElement this[
    int index
] { get; set; }
public:
virtual property IClockVectorElement^ default[int index] {
    IClockVectorElement^ get (int index) sealed;
    void set (int index, IClockVectorElement^ value) sealed;
}
abstract Item : IClockVectorElement with get, set
override Item : IClockVectorElement with get, set
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

  • index
    Type: System.Int32
    The index of the element to get or set.

Property Value

Type: Microsoft.Synchronization.IClockVectorElement
The element in the clock vector that is indicated by the value of index.

Implements

IList<T>.Item[Int32]

Exceptions

Exception Condition
ArgumentException

value cannot be cast to ClockVectorElement.

See Also

Reference

ClockVector Class

Microsoft.Synchronization Namespace