FileExtensionVector.IndexOf(String, UInt32) Méthode

Définition

Récupère l’index d’une extension de nom de fichier spécifiée dans la 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

Paramètres

value
String

Platform::String

winrt::hstring

Extension de nom de fichier à trouver dans la collection.

index
UInt32

unsigned int

uint32_t

Index de base zéro de l’extension de nom de fichier s’il est trouvé. Ce paramètre est défini sur zéro si l’extension de nom de fichier est introuvable.

Retours

Boolean

bool

True si l’extension de nom de fichier est trouvée ; sinon, FALSE.

Implémente

M:Windows.Foundation.Collections.IVector1.IndexOf(0,System.UInt32@) M:Windows.Foundation.Collections.IVector1.IndexOf(0,unsigned int@) M:Windows.Foundation.Collections.IVector1.IndexOf(0,uint32_t@)

S’applique à