PackageUtilities::ConvertToType<T> Method (T, Type^, CultureInfo^)
Visual Studio 2015
Converts a string to an enumeration type.
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.
Type Parameters
- T
The enum to which to convert.
Show: