PackageUtilities::ConvertFromType<T> Method (String^, CultureInfo^)

 
clsCompliantAlternativeNone

Converts a string to an enumeration by using a converter.

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 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.

Return Value

Type: System::Nullable<T>

The enumeration value.

Type Parameters

T

The type of the Nullable.

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

Return to top
Show: