FileExtensionVector.IndexOf FileExtensionVector.IndexOf FileExtensionVector.IndexOf FileExtensionVector.IndexOf FileExtensionVector.IndexOf Method

Definition

Overloads

IndexOf(T) IndexOf(T) IndexOf(T) IndexOf(T)

Determines the index of a specific item in the System.Collections.Generic.IList`1.

IndexOf(String, UInt32) IndexOf(String, UInt32) IndexOf(String, UInt32) IndexOf(String, UInt32) IndexOf(String, UInt32)

Retrieves the index of a specified file name extension in the collection.

IndexOf(T) IndexOf(T) IndexOf(T) IndexOf(T)

Determines the index of a specific item in the System.Collections.Generic.IList`1.

// This member is not implemented in C++/CX
int IndexOf(T item)
Function IndexOf(item As T) As Integer
int IndexOf(T item)

Parameters

item
T T T T T

The object to locate in the System.Collections.Generic.IList`1.

Returns

The index of item if found in the list; otherwise, -1.

IndexOf(String, UInt32) IndexOf(String, UInt32) IndexOf(String, UInt32) IndexOf(String, UInt32) IndexOf(String, UInt32)

Retrieves the index of a specified file name extension in the collection.

public : Platform::Boolean IndexOf(Platform::String value, unsigned int index)
bool IndexOf(winrt::hstring value, uint32_t const& index) const;
// This member is not implemented in C#
' This member is not implemented in VB.Net
var bool = fileExtensionVector.indexOf(value, index);

Parameters

value
String String String

The file name extension to find in the collection.

index
UInt32 UInt32 UInt32

The zero-based index of the file name extension if found. This parameter is set to zero if the file name extension is not found.

Returns

bool bool bool

True if the file name extension is found; otherwise FALSE.