ValidationContext.GetCache<T> 方法

为指定类获取缓存 。

命名空间:  Microsoft.VisualStudio.Modeling.Validation
程序集:  Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.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 命名空间