Connectivity Software User's Guide and Reference
DisplayName2Attribute Class
Members 



OpcLabs.BaseLibPrimitives Assembly > OpcLabs.BaseLib.ComponentModel.Internal Namespace : DisplayName2Attribute Class
Same as System.ComponentModel.DisplayNameAttribute, but can also be used on fields (including enum members). In addition, it also allows to define a lowercased display name.
Syntax
'Declaration
 
<AttributeUsageAttribute(AttributeTargets.Class Or  _
    AttributeTargets.Delegate Or  _
    AttributeTargets.Enum Or  _
    AttributeTargets.Event Or  _
    AttributeTargets.Field Or  _
    AttributeTargets.Interface Or  _
    AttributeTargets.Method Or  _
    AttributeTargets.Property Or  _
    AttributeTargets.Struct)>
<ComVisibleAttribute(False)>
Public Class DisplayName2Attribute 
   Inherits System.ComponentModel.DisplayNameAttribute
   Implements System.Runtime.InteropServices._Attribute 
'Usage
 
Dim instance As DisplayName2Attribute
[AttributeUsage(AttributeTargets.Class | 
    AttributeTargets.Delegate | 
    AttributeTargets.Enum | 
    AttributeTargets.Event | 
    AttributeTargets.Field | 
    AttributeTargets.Interface | 
    AttributeTargets.Method | 
    AttributeTargets.Property | 
    AttributeTargets.Struct)]
[ComVisible(false)]
public class DisplayName2Attribute : System.ComponentModel.DisplayNameAttribute, System.Runtime.InteropServices._Attribute  
[AttributeUsage(AttributeTargets.Class | 
    AttributeTargets.Delegate | 
    AttributeTargets.Enum | 
    AttributeTargets.Event | 
    AttributeTargets.Field | 
    AttributeTargets.Interface | 
    AttributeTargets.Method | 
    AttributeTargets.Property | 
    AttributeTargets.Struct)]
[ComVisible(false)]
public ref class DisplayName2Attribute : public System.ComponentModel.DisplayNameAttribute, System.Runtime.InteropServices._Attribute  
Inheritance Hierarchy

System.Object
   System.Attribute
      System.ComponentModel.DisplayNameAttribute
         OpcLabs.BaseLib.ComponentModel.Internal.DisplayName2Attribute

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also