ExtendedProtectionPolicyTypeConverter.ConvertTo Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Konvertera objektet till den angivna typen.
public:
override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public override object? ConvertTo(System.ComponentModel.ITypeDescriptorContext? context, System.Globalization.CultureInfo? culture, object? value, Type destinationType);
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
public override object ConvertTo(System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType);
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
override this.ConvertTo : System.ComponentModel.ITypeDescriptorContext * System.Globalization.CultureInfo * obj * Type -> obj
Public Overrides Function ConvertTo (context As ITypeDescriptorContext, culture As CultureInfo, value As Object, destinationType As Type) As Object
Parametrar
- context
- ITypeDescriptorContext
En ITypeDescriptorContext som ger en formatkontext.
- culture
- CultureInfo
Ett CultureInfo objekt. Om null skickas antas den aktuella kulturen.
- value
- Object
Att Object konvertera. Detta bör vara ett ExtendedProtectionPolicy objekt.
Returer
En Object som representerar den konverterade value parametern.
- Attribut
Undantag
Parametern destinationType är null.
Konverteringen kunde inte utföras.
Kommentarer
Använd parametern context för att extrahera ytterligare information om miljön som konverteraren anropas från. Den här parametern kan vara null, så kontrollera den alltid. Dessutom kan egenskaperna för context objektet returnera null.