ConcurrentStack<T>.TryPeek(T) 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.
Tente de retourner un objet en haut de l’objet ConcurrentStack<T> sans le supprimer.
public:
bool TryPeek([Runtime::InteropServices::Out] T % result);
public bool TryPeek(out T result);
member this.TryPeek : 'T -> bool
Public Function TryPeek (ByRef result As T) As Boolean
Paramètres
- result
- T
Lorsque cette méthode est retournée, result contient un objet en haut de la ConcurrentStack<T> ou d’une valeur non spécifiée si l’opération a échoué.
Retours
true si et l’objet a été retourné avec succès ; sinon, false.