FilteredObservableCollection<T>.IndexOf Method (T)
Gets the location of the specified item.
Namespace: Microsoft.VisualStudio.Language.Intellisense
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
Syntax
'宣告
Public Function IndexOf ( _
item As T _
) As Integer
public int IndexOf(
T item
)
public:
virtual int IndexOf(
T item
) sealed
abstract IndexOf :
item:'T -> int
override IndexOf :
item:'T -> int
public final function IndexOf(
item : T
) : int
Parameters
- item
Type: T
The item.
Return Value
Type: System.Int32
The location of the specified item.
Implements
Remarks
If the collection has a filter, this method returns the location of the item in the filtered list, otherwise returns the location of the item in the underlying list.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.