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