Partager via


ValidationContext.TryGetCacheValue<T>(String, T) Method

Definition

Returns whether the cached object associated with the name exist or not

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

Type Parameters

T

Parameters

name
String

Name of the cache

outValue
T

Returns

An object of the given type.

Applies to