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