DisplayNameAttribute Class
Members See Also 
SourceCode.Framework Namespace : DisplayNameAttribute Class



Glossary Item Box

This is the text that will display in the designers

Syntax

Visual Basic (Declaration) 
<AttributeUsageAttribute(ValidOn=AttributeTargets.Class Or  _
    AttributeTargets.Method Or  _
    AttributeTargets.Property Or  _
    AttributeTargets.Parameter, 
   AllowMultiple=False, 
   Inherited=False)>
Public NotInheritable Class DisplayNameAttribute 
   Inherits System.ComponentModel.DisplayNameAttribute
Visual Basic (Usage)Copy Code
Dim instance As DisplayNameAttribute
C# 
[AttributeUsage(ValidOn=AttributeTargets.Class | 
    AttributeTargets.Method | 
    AttributeTargets.Property | 
    AttributeTargets.Parameter, 
   AllowMultiple=false, 
   Inherited=false)]
public sealed class DisplayNameAttribute : System.ComponentModel.DisplayNameAttribute 
C++/CLI 
[AttributeUsage(ValidOn=AttributeTargets.Class | 
    AttributeTargets.Method | 
    AttributeTargets.Property | 
    AttributeTargets.Parameter, 
   AllowMultiple=false, 
   Inherited=false)]
public ref class DisplayNameAttribute sealed : public System.ComponentModel.DisplayNameAttribute 

Inheritance Hierarchy

System.Object
   System.Attribute
      System.ComponentModel.DisplayNameAttribute
         SourceCode.Framework.DisplayNameAttribute

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also