Bewerken

Delen via


BaseNumberConverter.CanConvertTo(ITypeDescriptorContext, Type) Method

Definition

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

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ destinationType);
public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ t);
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 t);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (context As ITypeDescriptorContext, destinationType As Type) As Boolean
Public Overrides Function CanConvertTo (context As ITypeDescriptorContext, t As Type) As Boolean

Parameters

context
ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

destinationTypet
Type

A Type that represents the type to which you want to convert.

Returns

true if this converter can perform the operation; otherwise, false.

Applies to