ValidationContext.SetCacheValue<T> Method
Set the cached object associated with the name
Namespace: Microsoft.VisualStudio.Modeling.Validation
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaración
Public Sub SetCacheValue(Of T As {Class, New}) ( _
name As String, _
cacheObject As T _
)
public void SetCacheValue<T>(
string name,
T cacheObject
)
where T : class, new()
public:
generic<typename T>
where T : ref class, gcnew()
void SetCacheValue(
String^ name,
T cacheObject
)
member SetCacheValue :
name:string *
cacheObject:'T -> unit when 'T : not struct, new()
JScript does not support generic types or methods.
Type Parameters
- T
A class with a parameterless constructor
Parameters
- name
Type: System.String
Name of the cache
- cacheObject
Type: T
cached object to be associated with the given name
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.