获取类别,在其中将域属性分组(当显示在 PropertyGrid 控件中的属性设置为“已分类”模式时)。
命名空间: Microsoft.VisualStudio.Modeling.Design
程序集: Microsoft.VisualStudio.Modeling.Sdk.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.12.0.dll 中)
语法
声明
Public Overrides ReadOnly Property Category As String
public override string Category { get; }
属性值
类型:System.String
描述的属性的类别。
备注
如果 owner 参数在构造函数中指定了此属性描述符,则 owner 的 GetCategory 方法,此说明符。提供类别 propertyDescriptor 参数传递。 否则,应用于中描述的属性中使用 CategoryResourceAttribute 或 CategoryAttribute。 如果类不指定,则默认类别,杂项,返回。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。