BuiltInRoleConverter.CanConvertTo(ITypeDescriptorContext, Type) Método

Definição

Obtém um valor que indica se este conversor pode converter um objeto no tipo de destino fornecido usando o contexto.Gets a value indicating whether this converter can convert an object to the given destination type using the context.

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ destinationType);
public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext context, Type destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (context As ITypeDescriptorContext, destinationType As Type) As Boolean

Parâmetros

context
ITypeDescriptorContext

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

destinationType
Type

Um objeto de Type que representa o tipo para o qual você deseja converter.A Type object that represents the type you wish to convert to.

Retornos

Boolean

Um objeto de Boolean que indica se esse conversor pode executar a conversão.A Boolean object that indicates whether this converter can perform the conversion.

Comentários

O context parâmetro pode ser usado para extrair informações adicionais sobre o ambiente do qual esse conversor está sendo invocado.The context parameter can be used to extract additional information about the environment this converter is being invoked from. Isso pode ser Nothing. Portanto, sempre verifique.This can be Nothing, so always check. Além disso, as propriedades no objeto de contexto podem retornar Nothing.Also, properties on the context object can return Nothing.

Este conversor de tipo dá suporte ao User objeto Visual Basic.This type converter supports the Visual Basic User object.

Aplica-se a

Confira também