ValidationContext.GetCache<T> 方法

获取指定类的缓存。

命名空间:  Microsoft.VisualStudio.Modeling.Validation
程序集:  Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)

语法

声明
Public Function GetCache(Of T As {Class, New}) As T
public T GetCache<T>()
where T : class, new()

类型参数

  • T
    使用无参数构造函数的类

返回值

类型:T
指定类的缓存。

.NET Framework 安全性

请参见

参考

ValidationContext 类

GetCache 重载

Microsoft.VisualStudio.Modeling.Validation 命名空间