ActivityBindTypeConverter.CanConvertFrom(ITypeDescriptorContext, Type) Metodo

Definizione

Restituisce un valore che indica se il convertitore può convertire un oggetto del tipo di origine specificato in un oggetto ActivityBind utilizzando il contesto specificato.

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

Parametri

context
ITypeDescriptorContext

Elemento ITypeDescriptorContext che fornisce un contesto del formato.

sourceType
Type

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

Restituisce

Boolean

true se il convertitore può eseguire la conversione. In caso contrario, false.

Commenti

CanConvertFrom restituisce true se sourceType è una stringa.

Si applica a