Επεξεργασία

Κοινή χρήση μέσω


BaseIListConverter.CanConvertTo(ITypeDescriptorContext, Type) Method

Definition

Determines if a given type can be converted to a String.

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

Provides contextual information required for conversion.

destinationType
Type

Type being evaluated for conversion.

Returns

true if this type can be converted; otherwise, false.

Remarks

String is the only supported type for conversion.

Applies to