DisplayNameResourceAttribute Class
Represents the name associated with a property.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
System::Attribute
System.ComponentModel::DisplayNameAttribute
Microsoft.VisualStudio.Modeling.Design::DisplayNameResourceAttribute
| Name | Description | |
|---|---|---|
![]() | DisplayNameResourceAttribute(String^, Type^) | Initializes a new instance of the DisplayNameResourceAttribute class by using the specified display name key and type. |
![]() | DisplayNameResourceAttribute(String^, Type^, String^) | Initializes a new instance of the DisplayNameResourceAttribute class by using the specified display-name key, type, and resources name. |
| Name | Description | |
|---|---|---|
![]() | DisplayName | Gets the display name, which is localized to the current culture.(Overrides DisplayNameAttribute::DisplayName.) |
![]() | DisplayNameKey | Gets the key of the display-name resource entry in the specified resource. |
![]() | ResourceName | Gets the root name of the resource. |
![]() | Type | Gets the type that identifies the assembly that contains the resource. |
![]() | TypeId | (Inherited from Attribute.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from DisplayNameAttribute.) |
![]() | GetHashCode() | (Inherited from DisplayNameAttribute.) |
![]() | GetType() | (Inherited from Object.) |
![]() | IsDefaultAttribute() | (Inherited from DisplayNameAttribute.) |
![]() | Match(Object^) | (Inherited from Attribute.) |
![]() | ToString() | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | _Attribute::GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute::GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute::GetTypeInfoCount(UInt32) | (Inherited from Attribute.) |
![]() ![]() | _Attribute::Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | (Inherited from Attribute.) |
The name is used to identify the target property in various user interface contexts, such as when the property is shown in a PropertyGrid control.
The DisplayName 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 DisplayName 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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



