ServiceXNameTypeConverter.CanConvertFrom(ITypeDescriptorContext, Type) Método

Definição

Obtém um valor que indica se este conversor pode converter um objeto de um tipo em um XName.Gets a value that indicates whether this converter can convert an object of one type to an XName.

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

O contexto do descritor de tipoThe type descriptor context

sourceType
Type

O tipo do qual converter.The type to convert from.

Retornos

Boolean

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

Aplica-se a