LengthConverter.CanConvertTo(ITypeDescriptorContext, Type) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Avgör om konvertering är möjlig till en angiven typ från en Double som representerar ett objekts längd.
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
Parametrar
- typeDescriptorContext
- ITypeDescriptorContext
Ger sammanhangsberoende information om en komponent.
- destinationType
- Type
Identifierar datatypen som ska utvärderas för konvertering.
Returer
trueom konvertering till destinationType är möjlig, annars . false
Kommentarer
LengthConverterstöder konvertering av följande typer: , , , , , , , , String, Decimaloch Single. DoubleInt16Int32Int64UInt16UInt32UInt64