Stack<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.
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
S’il est présent, l’objet en haut de l’objet Stack<T>; sinon, la valeur par défaut de T.
Retours
true s’il existe un objet en haut de l’objet Stack<T>; false s’il Stack<T> est vide.