RepeatBehaviorConverter.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 till en angiven typ är möjlig.
public:
override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ destinationType);
public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext context, Type destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (context As ITypeDescriptorContext, destinationType As Type) As Boolean
Parametrar
- context
- ITypeDescriptorContext
Kontextinformation som krävs för konvertering.
- destinationType
- Type
Måltypen utvärderas för konvertering.
Returer
trueom konvertering är möjlig; annars . false
Kommentarer
De enda måltyper som stöds är String och InstanceDescriptor.