PackageUtilities::ConvertFromType<T> Method (String^, CultureInfo^)
Visual Studio 2015
Converts a string to an enumeration by using a converter.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: generic<typename T> where T : value struct, gcnew() static Nullable<T> ConvertFromType( String^ value, CultureInfo^ culture )
Parameters
- value
-
Type:
System::String^
The string value.
- culture
-
Type:
System.Globalization::CultureInfo^
The CultureInfo of the string.
Type Parameters
- T
The type of the Nullable.
The type parameter used should be an enumeration for which there is a subtype of EnumConverter.
Show: