SynchronizedCollection<T>.IndexOf Method (T)
.NET Framework (current version)
Returns the index of the first occurrence of a value in the collection.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- item
-
Type:
T
Removes all items from the collection.
Return Value
Type: System.Int32The zero-based index of the first occurrence of the value in the collection.
Implements
IList<T>.IndexOf(T)| Exception | Condition |
|---|---|
| ArgumentException | The value set is null or is not of the correct generic type T for the collection. |
.NET Framework
Available since 3.0
Available since 3.0
Show: