ImageSourceConverter.ConvertTo Methode

Definitie

Pogingen om een exemplaar van ImageSource een opgegeven type te converteren.

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);
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

Parameters

context
ITypeDescriptorContext

Contextinformatie die wordt gebruikt voor conversie.

culture
CultureInfo

Culturele informatie die tijdens de conversie wordt gerespecteerd.

value
Object

ImageSource om te converteren.

destinationType
Type

Type dat wordt geëvalueerd voor conversie.

Retouren

Een nieuw exemplaar van de destinationType.

Uitzonderingen

value is null of is geen geldig type.

– of –

context exemplaar kan niet serialiseren naar een tekenreeks.

Van toepassing op