Cache.Get(String) 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.
Récupère l'élément spécifié de l'objet Cache.
public:
System::Object ^ Get(System::String ^ key);
public object Get (string key);
member this.Get : string -> obj
Public Function Get (key As String) As Object
Paramètres
- key
- String
Identificateur de l'élément à récupérer du cache.
Retours
Élément récupéré du cache ou null si la clé est introuvable.
Exemples
L’exemple suivant montre comment récupérer la valeur mise en cache pour un contrôle serveur de zone de texte ASP.NET.
Cache.Get("MyTextBox.Value");
Cache.Get("MyTextBox.Value")