Share via


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

Return Value

Type: System.Int32
The index of item in the clock vector element list.

Implements

IList<T>.IndexOf(T)

Exceptions

Exception Condition
ArgumentException

item cannot be cast to ClockVectorElement.

See Also

Reference

ClockVector Class

Microsoft.Synchronization Namespace