Lenguaje

LengthConverter.CanConvertTo(ITypeDescriptorContext, Type) Método

Definición

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

destinationType
Type

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

Devoluciones

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

Comentarios

LengthConverteradmite la conversión de los siguientes tipos: String, , DecimalSingleDoubleInt16Int32Int64, , UInt16, y . UInt32UInt64

Se aplica a