Lenguaje

LengthConverter.CanConvertFrom(ITypeDescriptorContext, Type) Método

Definición

Determina si la conversión es posible de un tipo especificado a un 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 información contextual sobre un componente.

sourceType
Type

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

Devoluciones

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

Comentarios

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

Se aplica a