LengthConverter.CanConvertTo(ITypeDescriptorContext, Type) Método

Definición

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

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

Parámetros

typeDescriptorContext
ITypeDescriptorContext

Proporciona la información contextual sobre un componente.

destinationType
Type

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

Devoluciones

Boolean

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

Comentarios

LengthConverteradmite la conversión de los siguientes tipos: String, , DecimalSingle, Int16Int32Int64UInt16Double, , UInt32y .UInt64

Se aplica a