TypeListConverter.CanConvertFrom(ITypeDescriptorContext, Type) Método

Definição

Obtém um valor que indica se esse conversor pode converter o Type especificado do objeto de origem usando o contexto fornecido.Gets a value indicating whether this converter can convert the specified Type of the source object using the given context.

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

Parâmetros

context
ITypeDescriptorContext

Um ITypeDescriptorContext que fornece um contexto de formato.An ITypeDescriptorContext that provides a format context.

sourceType
Type

O Type do objeto de origem.The Type of the source object.

Retornos

Boolean

true se esse conversor puder realizar a conversão; caso contrário, false.true if this converter can perform the conversion; otherwise, false.

Aplica-se a