Dela via


ClockVector.Remove Method

Removes the first occurrence of a specific element from the clock vector.

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

Syntax

'Declaration
Public Function Remove ( _
    item As IClockVectorElement _
) As Boolean
'Usage
Dim instance As ClockVector
Dim item As IClockVectorElement
Dim returnValue As Boolean

returnValue = instance.Remove(item)
public bool Remove(
    IClockVectorElement item
)
public:
virtual bool Remove(
    IClockVectorElement^ item
) sealed
abstract Remove : 
        item:IClockVectorElement -> bool 
override Remove : 
        item:IClockVectorElement -> bool 
public final function Remove(
    item : IClockVectorElement
) : boolean

Parameters

Return Value

Type: System.Boolean
true if item was successfully removed from the clock vector; otherwise, false. This method also returns false when item is not found.

Implements

ICollection<T>.Remove(T)

Exceptions

Exception Condition
ArgumentException

item cannot be cast to ClockVectorElement.

See Also

Reference

ClockVector Class

Microsoft.Synchronization Namespace