FileExtensionVector.IndexOf(String, UInt32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
擷取集合中指定副檔名的索引。
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
參數
- value
-
String
Platform::String
winrt::hstring
在集合中尋找的副檔名。
- index
-
UInt32
unsigned int
uint32_t
如果找到副檔名,則為以零起始的索引。 如果找不到副檔名,此參數會設定為零。
傳回
Boolean
bool
如果找到副檔名,則為 True;否則為 FALSE。
實作
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@)