Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
'Declaration
Public Shared Function SetStringValueFromConvertedEnum(Of T As Structure) ( _
enumValue As T, _
culture As CultureInfo _
) As String
public static string SetStringValueFromConvertedEnum<T>(
T enumValue,
CultureInfo culture
)
where T : struct
public:
generic<typename T>
where T : value class
static String^ SetStringValueFromConvertedEnum(
T enumValue,
CultureInfo^ culture
)
static member SetStringValueFromConvertedEnum :
enumValue:'T *
culture:CultureInfo -> string when 'T : struct
JScript does not support generic types or methods.
Type Parameters
- T
The enum type.
Parameters
enumValue
Type: TThe enumeration value.
culture
Type: System.Globalization.CultureInfoThe CultureInfo of the string.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.