AttributeMetadataCollection.IndexOf(AttributeMetadata) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne la première occurrence de l'objet AttributeMetadata spécifié dans cette collection.
public:
int IndexOf(System::DirectoryServices::ActiveDirectory::AttributeMetadata ^ metadata);
public int IndexOf (System.DirectoryServices.ActiveDirectory.AttributeMetadata metadata);
member this.IndexOf : System.DirectoryServices.ActiveDirectory.AttributeMetadata -> int
Public Function IndexOf (metadata As AttributeMetadata) As Integer
Paramètres
- metadata
- AttributeMetadata
Objet AttributeMetadata à rechercher dans cette collection.
Retours
Index de base zéro du premier élément correspondant. -1 si aucun membre de cette collection n'est identique à metadata
.
Exceptions
Un appel au service d'annuaire sous-jacent a échoué.
metadata
a la valeur null
.
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour