DurationConverter.CanConvertFrom(ITypeDescriptorContext, Type) Método

Definición

Determina si es posible convertir un tipo dado en una instancia de Duration.

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

Parámetros

td
ITypeDescriptorContext

Información de contexto utilizada para la conversión.

t
Type

Tipo que se evalúa para la conversión.

Devoluciones

Boolean

true si t es de tipo String; en caso contrario, false.

Se aplica a