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.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

System::Object
  System::Attribute
    System.ComponentModel::DescriptionAttribute
      Microsoft.VisualStudio.Modeling.Design::DescriptionResourceAttribute

[AttributeUsageAttribute(AttributeTargets::Class | AttributeTargets::Property | AttributeTargets::Field, 
	AllowMultiple = false)]
public ref class DescriptionResourceAttribute sealed : DescriptionAttribute

NameDescription
System_CAPS_pubmethodDescriptionResourceAttribute(String^, Type^)

Initializes a new instance of the DescriptionResourceAttribute class by using the specified description key and type.

System_CAPS_pubmethodDescriptionResourceAttribute(String^, Type^, String^)

Initializes a new instance of the DescriptionResourceAttribute class by using the specified description key, type, and resources name.

NameDescription
System_CAPS_pubpropertyDescription

Gets the description, localized to the current culture.(Overrides DescriptionAttribute::Description.)

System_CAPS_pubpropertyDescriptionKey

Gets the key of the description resource entry in the specified resource.

System_CAPS_pubpropertyResourceName

Gets the root name of the resource.

System_CAPS_pubpropertyType

Gets the type that identifies the assembly that contains the resource.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from DescriptionAttribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from DescriptionAttribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from DescriptionAttribute.)

System_CAPS_pubmethodMatch(Object^)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: