다음을 통해 공유


PackageUtilities.SetStringValueFromConvertedEnum<T> Method

Returns a string from an enumeration value.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

‘선언
Public Shared Function SetStringValueFromConvertedEnum(Of T As {Structure, New}) ( _
    enumValue As T, _
    culture As CultureInfo _
) As String
public static string SetStringValueFromConvertedEnum<T>(
    T enumValue,
    CultureInfo culture
)
where T : struct, new()

Type Parameters

  • T
    The enum type.

Parameters

  • enumValue
    Type: T
    The enumeration value.

Return Value

Type: System.String
A string value derived from the enumeration.

Remarks

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

.NET Framework Security

See Also

Reference

PackageUtilities Class

Microsoft.VisualStudio.Shell Namespace