EnumDescription.GetDescription (Type, String) Method

Gets the description for certaing named value in an Enumeration
Public Shared Function GetDescription( _ 
ByVal value As Type, _ 
ByVal name As String
) As String
This language is not supported or no code example is available.
public static string GetDescription( 
Type value
string name 
)
This language is not supported or no code example is available.

Parameters

value
Type

The type of the Enumeration

name
string

The name of the Enumeration value

Return Value

string

The description, if any, else the passed name

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition