返回域属性类别的本地化字符串。
命名空间: Microsoft.VisualStudio.Modeling.Design
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
Protected Friend Overridable Function GetCategory ( _
propertyDescriptor As ElementPropertyDescriptor _
) As String
protected internal virtual string GetCategory(
ElementPropertyDescriptor propertyDescriptor
)
参数
- propertyDescriptor
类型:Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
要为其获取类别的域属性的说明符。
返回值
类型:System.String
域属性类别的本地化字符串。
异常
异常 | 条件 |
---|---|
ArgumentNullException | propertyDescriptor 为 nullnull 引用(在 Visual Basic 中为 Nothing)。 |
备注
在所有者指定时,属性说明符创建域,则属性说明符的 Category 属性使用所有者的 GetCategory 方法返回的类别。 如果此方法返回 nullnull 引用(在 Visual Basic 中为 Nothing),则使用属性描述符。描述属性的元数据确定属性的类别。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。