VersionConverter.CanConvertFrom(ITypeDescriptorContext, Type) Method

Definition

Gets a value indicating whether this converter can convert an object in the given source type to a Version.

public:
 override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ sourceType);
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

An object that provides contextual information.

sourceType
Type

The type of the object to be converted.

Returns

true if this converter can convert sourceType to a Version; otherwise, false.

Applies to