LengthConverter.CanConvertFrom(ITypeDescriptorContext, Type) Método

Definición

Determina si la conversión es posible desde un tipo especificado a Double que representa la longitud de un objeto.

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

Parámetros

typeDescriptorContext
ITypeDescriptorContext

Proporciona la información contextual sobre un componente.

sourceType
Type

Identifica el tipo de datos que se van a evaluar para la conversión.

Devoluciones

Es true si la conversión es posible; de lo contrario, es false.

Comentarios

LengthConverteradmite la conversión a y desde los siguientes tipos: String, Decimal, DoubleInt64SingleInt16Int32, UInt16, UInt32, y .UInt64

Se aplica a