Språk

DurationConverter.CanConvertTo(ITypeDescriptorContext, Type) Metod

Definition

Avgör om konvertering till en angiven typ är möjlig.

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

Kontextinformation som används för konvertering.

destinationType
Type

Typ som utvärderas för konvertering.

Returer

trueom destinationType är av typen String; annars . false

Gäller för