Språk

DurationConverter.CanConvertFrom(ITypeDescriptorContext, Type) Metod

Definition

Avgör om konvertering från en viss typ till en instans av Duration är möjlig.

public:
 override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ td, Type ^ t);
public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext td, Type t);
override this.CanConvertFrom : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertFrom (td As ITypeDescriptorContext, t As Type) As Boolean

Parametrar

td
ITypeDescriptorContext

Kontextinformation som används för konvertering.

t
Type

Typ som utvärderas för konvertering.

Returer

trueom t är av typen String; annars . false

Gäller för