Språk

ImageSourceConverter.CanConvertTo(ITypeDescriptorContext, Type) Metod

Definition

Avgör om en instans av ImageSource kan konverteras till en annan typ.

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

Parametrar

context
ITypeDescriptorContext

Typkontextinformation som används för att utvärdera konvertering.

destinationType
Type

Önskad typ som konverteringen ska utvärderas till.

Returer

true om konverteraren kan konvertera den här instansen av ImageSource, annars , false.

Undantag

context instansen är inte en ImageSource.

Gäller för