通过实现类型获取域类。
命名空间: Microsoft.VisualStudio.Modeling
程序集: Microsoft.VisualStudio.Modeling.Sdk.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.11.0.dll 中)
语法
声明
Public Function GetDomainClass ( _
type As Type _
) As DomainClassInfo
public DomainClassInfo GetDomainClass(
Type type
)
参数
- type
类型:System.Type
域类的实现类型。
返回值
类型:Microsoft.VisualStudio.Modeling.DomainClassInfo
指定类型的 DomainClassInfo 对象。
异常
异常 | 条件 |
---|---|
ArgumentNullException | 如果 nullnull 引用(在 Visual Basic 中为 Nothing) 引用 (在 Visual Basic 中Nothing ) 是作为参数。 |
DomainDataNotFoundException | 如果找不到请求的字段类。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。