Share via


PathSegmentCollection.IndexOf(PathSegment, UInt32) Méthode

Définition

Récupère l’index de l’élément spécifié.

public:
 virtual bool IndexOf(PathSegment ^ value, [Out] unsigned int & index) = IVector<PathSegment ^>::IndexOf;
bool IndexOf(PathSegment const& value, [Out] uint32_t & index);
public bool IndexOf(PathSegment value, out uint index);
Public Function IndexOf (value As PathSegment, ByRef index As UInteger) As Boolean

Paramètres

value
PathSegment

Valeur à rechercher dans la collection.

index
UInt32

unsigned int

uint32_t

Index de l’élément à rechercher, s’il est trouvé.

Retours

Boolean

bool

true si un élément avec la valeur spécifiée a été trouvé ; 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 à