Share via


DescriptionResourceAttribute Class

Represents a property description for a property when the property is displayed in a PropertyGrid control.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Property Or AttributeTargets.Field, AllowMultiple := False)> _
Public NotInheritable Class DescriptionResourceAttribute _
    Inherits DescriptionAttribute
'Usage
Dim instance As DescriptionResourceAttribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false)]
public sealed class DescriptionResourceAttribute : DescriptionAttribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Property|AttributeTargets::Field, AllowMultiple = false)]
public ref class DescriptionResourceAttribute sealed : public DescriptionAttribute
public final class DescriptionResourceAttribute extends DescriptionAttribute

Remarks

The Description property of this class gets the description string resource that is localized to the current culture. If a localized string is not available, then the Description property returns the value of the DescriptionKey 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.DescriptionAttribute
      Microsoft.VisualStudio.Modeling.Design.DescriptionResourceAttribute

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

DescriptionResourceAttribute Members

Microsoft.VisualStudio.Modeling.Design Namespace

CategoryResourceAttribute

DisplayNameResourceAttribute

DescriptionAttribute

ResourceManager

Change History

Date

History

Reason

July 2008

Added topic.

Content bug fix.