Share via


LinkConverter.CanConvertFrom(ITypeDescriptorContext, Type) Metodo

Definizione

Ottiene un valore che determina se l'oggetto LinkConverter può convertire un oggetto con il contesto e il tipo di origine specificati nel tipo nativo dell'oggetto LinkConverter.

public:
 override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ sourceType);
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

Oggetto ITypeDescriptorContext che fornisce informazioni contestuali sull'oggetto da convertire.

sourceType
Type

Tipo di oggetto da convertire.

Restituisce

true se l'oggetto LinkConverter può convertire l'oggetto specificato; in caso contrario, false.

Si applica a

Vedi anche