FileExtensionVector.IndexOf(String, UInt32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the index of a specified file name extension in the collection.
public:
virtual bool IndexOf(Platform::String ^ value, [Out] unsigned int & index) = IVector<Platform::String ^>::IndexOf;
bool IndexOf(winrt::hstring const& value, [Out] uint32_t & index);
public bool IndexOf(string value, out uint index);
Public Function IndexOf (value As String, ByRef index As UInteger) As Boolean
Parameters
- value
-
String
Platform::String
winrt::hstring
The file name extension to find in the collection.
- index
-
UInt32
unsigned int
uint32_t
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
Boolean
bool
True if the file name extension is found; otherwise FALSE.
Implements
M:Windows.Foundation.Collections.IVector
1.IndexOf(
0,System.UInt32@)
M:Windows.Foundation.Collections.IVector1.IndexOf(
0,unsigned int@)
M:Windows.Foundation.Collections.IVector1.IndexOf(
0,uint32_t@)