DisplayNameResourceAttribute Class
Represents the name associated with a property.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Property, AllowMultiple := False)> _
Public NotInheritable Class DisplayNameResourceAttribute _
Inherits DisplayNameAttribute
'Usage
Dim instance As DisplayNameResourceAttribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Property, AllowMultiple = false)]
public sealed class DisplayNameResourceAttribute : DisplayNameAttribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Property, AllowMultiple = false)]
public ref class DisplayNameResourceAttribute sealed : public DisplayNameAttribute
public final class DisplayNameResourceAttribute extends DisplayNameAttribute
Remarks
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.
Inheritance Hierarchy
System.Object
System.Attribute
System.ComponentModel.DisplayNameAttribute
Microsoft.VisualStudio.Modeling.Design.DisplayNameResourceAttribute
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
DisplayNameResourceAttribute Members
Microsoft.VisualStudio.Modeling.Design Namespace
Change History
Date |
History |
Reason |
---|---|---|
July 2008 |
Added topic. |
Content bug fix. |