







![]() ![]() |
DotRas SDK Documentation |
RasCollection<(Of <(<'TObject>)>)>..::..IndexOf Method |
RasCollection<(Of <(<'TObject>)>)> Class See Also Send Feedback |
![]() |
Searches for the specified item within the collection.
Namespace: DotRas.Design
Assembly: DotRas (in DotRas.dll) Version: 1.3.5166.33435 (1.3.0.0)
Syntax
C# |
---|
public int IndexOf( TObject item ) |
Visual Basic |
---|
Public Function IndexOf ( item As TObject ) As Integer |
Visual C++ |
---|
public: int IndexOf( TObject item ) |
F# |
---|
member IndexOf : item : 'TObject -> int |
Parameters
- item
- Type: TObject
Required. The item to locate.
Return Value
Type: Int32The zero-based index of the item if found; otherwise, -1.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | item is a null reference (Nothing in Visual Basic). |