ClockVector.IndexOf Method
Determines the index of a specific item in the clock vector element list.
Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
Syntax
'Declaration
Public Function IndexOf ( _
item As IClockVectorElement _
) As Integer
'Usage
Dim instance As ClockVector
Dim item As IClockVectorElement
Dim returnValue As Integer
returnValue = instance.IndexOf(item)
public int IndexOf(
IClockVectorElement item
)
public:
virtual int IndexOf(
IClockVectorElement^ item
) sealed
abstract IndexOf :
item:IClockVectorElement -> int
override IndexOf :
item:IClockVectorElement -> int
public final function IndexOf(
item : IClockVectorElement
) : int
Parameters
- item
Type: Microsoft.Synchronization.IClockVectorElement
The element to find in the clock vector.
Return Value
Type: System.Int32
The index of item in the clock vector element list.
Implements
Exceptions
Exception | Condition |
---|---|
ArgumentException | item cannot be cast to ClockVectorElement. |