Bewerken

Share via


LinkConverter.CanConvertTo(ITypeDescriptorContext, Type) Method

Definition

Retrieves a value that determines if this LinkConverter can convert an object having the specified context to the specified type.

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 providing contextual information about the object to be converted.

destinationType
Type

The type to convert the object to.

Returns

true if this LinkConverter can convert the specified object; otherwise, false.

Applies to

See also