Compartilhar via


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

Definition

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

Applies to