ValidationContext.TryGetCacheValue<T>(String, 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.
Retourne si l'objet mis en cache associé au nom existe ou n'existe pas
public:
generic <typename T>
where T : class, gcnew() bool TryGetCacheValue(System::String ^ name, [Runtime::InteropServices::Out] T % outValue);
public bool TryGetCacheValue<T> (string name, out T outValue) where T : class, new();
member this.TryGetCacheValue : string * 'T -> bool (requires 'T : null and 'T : (new : unit -> 'T))
Public Function TryGetCacheValue(Of T As {Class, New}) (name As String, ByRef outValue As T) As Boolean
Paramètres de type
- T
Paramètres
- name
- String
Nom du cache
- outValue
- T
Retours
Objet du type donné.