PackageUtilities::SetStringValueFromConvertedEnum<T> Method (T, CultureInfo^)

 
clsCompliantAlternativeNone

Returns a string from an enumeration value.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
generic<typename T>
where T : value struct, gcnew()
static String^ SetStringValueFromConvertedEnum(
	T enumValue,
	CultureInfo^ culture
)

Parameters

enumValue
Type: T

The enumeration value.

culture
Type: System.Globalization::CultureInfo^

The CultureInfo of the string.

Return Value

Type: System::String^

A string value derived from the enumeration.

Type Parameters

T

The enum type.

The type parameter used should be an enumeration for which there is a subtype of EnumConverter.

Return to top
Show: