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
- name
Type: System.String
- cacheObject
Type: T
Permissions
- 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.