ValidationContext.SetCacheValue<T> Generic Method

Namespace:  Microsoft.VisualStudio.Modeling.Validation
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'宣言
Public Sub SetCacheValue(Of T As {Class, New}) ( _
    name As String, _
    cacheObject As T _
)
'使用
Dim instance As ValidationContext
Dim name As String
Dim cacheObject As T

instance.SetCacheValue(name, cacheObject)
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
)
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

  • cacheObject
    Type: T

Permissions

See Also

Reference

ValidationContext Class

ValidationContext Members

Microsoft.VisualStudio.Modeling.Validation Namespace