TreeViewImageKeyConverter.ConvertTo Methode

Definition

Konvertiert das angegebene Objekt in ein Objekt des angegebenen Typs mithilfe der angegebenen Kulturinformationen und des angegebenen Kontexts.

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

Parameter

context
ITypeDescriptorContext

A ITypeDescriptorContext that provides a format context, which can be used to extract additional information about the environment this type converter is be invoked from. Dieser Parameter oder die Eigenschaften dieses Parameters können sein null.

culture
CultureInfo

Ein CultureInfo Gebietsschema, das Gebietsschemainformationen bereitstellt.

value
Object

Das zu konvertierende Objekt, in der Regel ein Bildschlüssel.

destinationType
Type

Der Typ, in den das Objekt konvertiert werden soll.

Gibt zurück

Ein Object Wert, der die konvertierte value.

Ausnahmen

destinationType ist null.

Der angegebene Wert value kann nicht in das angegebene destinationTypeObjekt konvertiert werden.

Gilt für: