TreeViewImageKeyConverter.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.
Konverterar det angivna objektet till ett objekt av den angivna typen med den angivna kulturinformationen och kontexten.
public:
override System::Object ^ ConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, System::Globalization::CultureInfo ^ culture, System::Object ^ value, Type ^ destinationType);
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);
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 tillhandahåller en formatkontext som kan användas för att extrahera ytterligare information om miljön som den här typkonverteraren anropas från. Den här parametern eller egenskaperna för den här parametern kan vara null.
- culture
- CultureInfo
En CultureInfo som tillhandahåller språkinformation.
- value
- Object
Objektet som ska konverteras, vanligtvis en bildnyckel.
- destinationType
- Type
Den typ som objektet ska konverteras till.
Returer
En Object som representerar den konverterade value.
Undantag
destinationType är null.
Det angivna value kan inte konverteras till den angivna destinationType.