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

'Declaração
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

  • cacheObject
    Type: T
    cached object to be associated with the given name

.NET Framework Security

See Also

Reference

ValidationContext Class

Microsoft.VisualStudio.Modeling.Validation Namespace