Udostępnij za pośrednictwem


Metoda PackageUtilities.ConvertFromType<T> —

Konwertuje ciąg na wyliczenie za pomocą konwertera.

Przestrzeń nazw:  Microsoft.VisualStudio.Shell
Zestaw:  Microsoft.VisualStudio.Shell.11.0 (w Microsoft.VisualStudio.Shell.11.0.dll)

Składnia

'Deklaracja
Public Shared Function ConvertFromType(Of T As {Structure, New}) ( _
    value As String, _
    culture As CultureInfo _
) As Nullable(Of T)
public static Nullable<T> ConvertFromType<T>(
    string value,
    CultureInfo culture
)
where T : struct, new()

Parametry typów

Parametry

Wartość zwracana

Typ: System.Nullable<T>
Wartość wyliczenia.

Uwagi

Parametr typu, używane powinny być wyliczeniem, dla którego jest podtypem EnumConverter.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

PackageUtilities Klasa

Przestrzeń nazw Microsoft.VisualStudio.Shell