PropertyPathConverter.CanConvertFrom(ITypeDescriptorContext, Type) Metodo

Definizione

Indica se questo convertitore può convertire un oggetto di un tipo nel tipo PropertyPath.

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

Parametri

typeDescriptorContext
ITypeDescriptorContext

Oggetto ITypeDescriptorContext che fornisce un contesto di formato.

sourceType
Type

Oggetto Type che rappresenta il tipo da cui eseguire la conversione.

Restituisce

true se sourceType è di tipo String; in caso contrario, false.

Si applica a