ActivityBindTypeConverter.CanConvertTo(ITypeDescriptorContext, Type) Método

Definição

Retorna um valor que indica se esse conversor pode converter um ActivityBind para o tipo de destino usando o contexto especificado.Returns a value indicating whether this converter can convert an ActivityBind to the destination type using the specified 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

O ITypeDescriptorContext que fornece um contexto de formato.The ITypeDescriptorContext that provides a format context.

destinationType
Type

Um Type que representa o tipo para o qual converter o ActivityBind.A Type that represents the type to convert the ActivityBind to.

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.

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. Essa pode ser uma referência nula ( Nothing em Visual Basic), portanto, sempre verifique.This can be a null reference (Nothing in Visual Basic), so always check. Além disso, as propriedades no context objeto podem retornar uma referência nula ( Nothing ).Also, properties on the context object can return a null reference (Nothing).

Observação

Substitua esse método para fornecer seus próprios requisitos de conversão.Override this method to provide your own conversion requirements.

Aplica-se a