ValidationContext.SetCacheValue<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.
Set the cached object associated with the name
public:
generic <typename T>
where T : class, gcnew() void SetCacheValue(System::String ^ name, T cacheObject);
public void SetCacheValue<T> (string name, T cacheObject) where T : class, new();
member this.SetCacheValue : string * 'T -> unit (requires 'T : null and 'T : (new : unit -> 'T))
Public Sub SetCacheValue(Of T As {Class, New}) (name As String, cacheObject As T)
Type Parameters
- T
A class with a parameterless constructor
Parameters
- name
- String
Name of the cache
- cacheObject
- T
cached object to be associated with the given name