PackageUtilities::ConvertToType<T> Method (T, Type^, CultureInfo^)

 
clsCompliantAlternativeNone

Converts a string to an enumeration type.

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 Object^ ConvertToType(
	T value,
	Type^ typeToConvert,
	CultureInfo^ culture
)

Parameters

value
Type: T

The enumeration to which the string is to be converted.

typeToConvert
Type: System::Type^

The value to convert.

culture
Type: System.Globalization::CultureInfo^

A CultureInfo object that describes the culture to use to read localized strings.

Return Value

Type: System::Object^

The enumeration type.

Type Parameters

T

The enum to which to convert.

Return to top
Show: