Edita

Comparteix a través de


DiscoveryVersionConverter.CanConvertFrom(ITypeDescriptorContext, Type) Method

Definition

Returns a value that indicates whether it is possible to change the given DiscoveryVersion object to the type of this converter and using the specified context and culture information.

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

Parameters

context
ITypeDescriptorContext

Type descriptor format information that assists in the conversion of a DiscoveryVersion object to another type.

sourceType
Type

The DiscoveryVersion object that is changed to the type of this converter.

Returns

true if it is possible to change the specified DiscoveryVersion object to the type of this converter; otherwise, false.

Applies to