共用方式為


PSDataCollection<T>.IList.IndexOf(Object) Method

Definition

Determines the zero-based index of an element in the buffer.

 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
 virtual int System.Collections.IList.IndexOf(Platform::Object ^ value) = System::Collections::IList::IndexOf;
int System.Collections.IList.IndexOf(winrt::Windows::Foundation::IInspectable const & value);
int IList.IndexOf (object value);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (value As Object) As Integer Implements IList.IndexOf

Parameters

value
Object

The element in the buffer whose index is being determined.

Returns

The index of the value if found in the buffer; otherwise, -1.

Implements

Exceptions

value reference is null. (or) value is not of the correct generic type T for the buffer.

Applies to