Utilities.SetStringValueFromConvertedEnum<T> Generic Method

Sets a string value from an enumeration.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
<CLSCompliantAttribute(False)> _
Public Shared Function SetStringValueFromConvertedEnum(Of T As {Structure, New}) ( _
    enumValue As T, _
    culture As CultureInfo _
) As String
'使用
Dim enumValue As T
Dim culture As CultureInfo
Dim returnValue As String

returnValue = Utilities.SetStringValueFromConvertedEnum(enumValue, _
    culture)
[CLSCompliantAttribute(false)]
public static string SetStringValueFromConvertedEnum<T>(
    T enumValue,
    CultureInfo culture
) where T : struct, new()
[CLSCompliantAttribute(false)]
public:
generic<typename T>
where T : value class, gcnew()
static String^ SetStringValueFromConvertedEnum(
    T enumValue, 
    CultureInfo^ culture
)
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

  • enumValue
    Type: T

    The enumeration value to convert.

Return Value

Type: System.String

The converted string.

Permissions

See Also

Reference

Utilities Class

Utilities Members

Microsoft.VisualStudio.Package Namespace