CategoryResourceAttribute Class
Represents a category in which to group a property when the property is displayed in a PropertyGrid control that is set to Categorized mode.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
<AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple := False)> _
Public NotInheritable Class CategoryResourceAttribute _
Inherits CategoryAttribute
'Usage
Dim instance As CategoryResourceAttribute
[AttributeUsageAttribute(AttributeTargets.Property, AllowMultiple = false)]
public sealed class CategoryResourceAttribute : CategoryAttribute
[AttributeUsageAttribute(AttributeTargets::Property, AllowMultiple = false)]
public ref class CategoryResourceAttribute sealed : public CategoryAttribute
public final class CategoryResourceAttribute extends CategoryAttribute
Remarks
The Category property of this class returns the category string resource that is localized to the current culture. If a localized string is not available, then the Category property returns the value of the DisplayNameKey property.
When you design a domain-specific language (DSL), the generated code applies this attribute to every property that corresponds to a domain property in the DSL definition.
Inheritance Hierarchy
System.Object
System.Attribute
System.ComponentModel.CategoryAttribute
Microsoft.VisualStudio.Modeling.Design.CategoryResourceAttribute
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Reference
CategoryResourceAttribute Members
Microsoft.VisualStudio.Modeling.Design Namespace
Change History
Date |
History |
Reason |
---|---|---|
July 2008 |
Added topic. |
Content bug fix. |