EnumValue.DisplayName Property

Definition

The name that could be used by a prospective UI client to display this EnumValue.

public:
 property System::String ^ DisplayName { System::String ^ get(); void set(System::String ^ value); };
public string DisplayName { get; set; }
public string DisplayName { get; [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] set; }
member this.DisplayName : string with get, set
[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
member this.DisplayName : string with get, set
Public Property DisplayName As String

Property Value

The name.

Attributes

Remarks

This field is optional and is culture sensitive. When this property is not set, it is assigned the same value as the Name property (and hence, would not be localized).

Applies to