ערוך

שתף באמצעות


ColumnHeaderConverter.CanConvertTo(ITypeDescriptorContext, Type) Method

Definition

Returns a value indicating whether the ColumnHeaderConverter can convert a ColumnHeader to the specified type, using the specified 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

A ITypeDescriptorContext that provides a format context.

destinationType
Type

A type representing the type to convert to.

Returns

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

Remarks

Use the context parameter to extract additional information about the environment from which this converter is invoked. This parameter can be null, so always check it. Also, properties on the context object can return null.

Applies to