Bewerken

Share via


ImageFormatConverter.CanConvertTo(ITypeDescriptorContext, Type) Method

Definition

Gets a value indicating whether this converter can convert an object to the specified destination type using the context.

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ destinationType);
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext? context, Type? destinationType);
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext context, Type destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (context As ITypeDescriptorContext, destinationType As Type) As Boolean

Parameters

context
ITypeDescriptorContext

An ITypeDescriptorContext that specifies the context for this type conversion.

destinationType
Type

The Type that represents the type to which you want to convert this ImageFormat object.

Returns

This method returns true if this object can perform the conversion.

Remarks

The ImageFormatConverter converts to and from known image formats, as specified in the ImageFormat class.

Applies to