ValidationContext.TryGetCacheValue<T>(String, T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.