ThemeModeConverter.CanConvertFrom(ITypeDescriptorContext, Type) Method

Definition

Determines whether or not this class can convert from a given type.

public:
 override bool CanConvertFrom(System::ComponentModel::ITypeDescriptorContext ^ typeDescriptorContext, Type ^ sourceType);
public override bool CanConvertFrom (System.ComponentModel.ITypeDescriptorContext typeDescriptorContext, Type sourceType);
override this.CanConvertFrom : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertFrom (typeDescriptorContext As ITypeDescriptorContext, sourceType As Type) As Boolean

Parameters

typeDescriptorContext
ITypeDescriptorContext

The ITypeDescriptorContext for this call.

sourceType
Type

The Type being queried for support.

Returns

true if the converter can convert from the provided type; otherwise, false.

Applies to