PackageUtilities.SetStringValueFromConvertedEnum<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a string from an enumeration value.
public:
generic <typename T>
where T : value class static System::String ^ SetStringValueFromConvertedEnum(T enumValue, System::Globalization::CultureInfo ^ culture);
public static string SetStringValueFromConvertedEnum<T> (T enumValue, System.Globalization.CultureInfo culture) where T : struct;
static member SetStringValueFromConvertedEnum : 'T * System.Globalization.CultureInfo -> string (requires 'T : struct)
Public Function SetStringValueFromConvertedEnum(Of T As Structure) (enumValue As T, culture As CultureInfo) As String
Type Parameters
- T
The enum type
Parameters
- enumValue
- T
The value of the enum.
- culture
- CultureInfo
Returns
Remarks
The type parameter used should be an enumeration for which there is a subtype of EnumConverter.