EnumDescription.GetDescription (Enum) Method

Gets Enum Value's Description Attribute
Public Shared Function GetDescription( _ 
ByVal value As Enum
) As String
This language is not supported or no code example is available.
public static string GetDescription( 
Enum value 
)
This language is not supported or no code example is available.

Parameters

value
Enum

The value you want the description attribute for

Return Value

string

The description, if any, else it's .ToString()

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition