Skip to main content
.NET Standard 2.0+

DisplayNameAttribute Class

Specifies the member’s display name.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v22.1.dll

Declaration

[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, Inherited = true)]
public class DisplayNameAttribute :
    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; }
    }
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DisplayNameAttribute class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Inheritance

Object
Attribute
DisplayNameAttribute
See Also