InputScopeConverter.CanConvertFrom(ITypeDescriptorContext, Type) Methode

Definitie

Bepaalt of een InputScope object kan worden geconverteerd vanuit een object van een opgegeven type.

public:
 override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ sourceType);
public override bool CanConvertFrom(System.ComponentModel.ITypeDescriptorContext context, Type sourceType);
override this.CanConvertFrom : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertFrom (context As ITypeDescriptorContext, sourceType As Type) As Boolean

Parameters

context
ITypeDescriptorContext

Een object dat elke typedescriptorcontext beschrijft. Dit object moet de ITypeDescriptorContext interface implementeren. Deze parameter kan zijn null.

sourceType
Type

Een Type om te controleren op conversiecompatibiliteit.

Retouren

true als sourceType het type Stringis; anders, false.

Van toepassing op