The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

DisplayNameAttribute Class

Specifies the member's display name.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v19.2.dll

Declaration

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, Inherited = true)]
public class DisplayNameAttribute :
    Attribute
<AttributeUsage(AttributeTargets.Property Or AttributeTargets.Field, Inherited:=True)>
Public Class DisplayNameAttribute
    Inherits Attribute
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, Inherited = true)]
public class DisplayNameAttribute :
    Attribute
<AttributeUsage(AttributeTargets.Field Or AttributeTargets.Property, Inherited:=True)>
Public Class DisplayNameAttribute
    Inherits Attribute

Remarks

The following sample code shows how to use the DisplayNameAttribute attribute.


public class Customer : XPObject {

    private string _customerName;

    [DisplayName("Customer Name")]
    public string CustomerName {
        get { return _customerName; }
        set { _customerName = value; }
    }
}

Inheritance

Object
Attribute
DisplayNameAttribute
See Also