Επεξεργασία

Κοινή χρήση μέσω


TransformConverter.CanConvertFrom(ITypeDescriptorContext, Type) Method

Definition

Determines whether this class can convert an object of a specified type to a Transform type.

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

The conversion context.

sourceType
Type

The type from which to convert.

Returns

true if conversion is possible; otherwise, false.

Remarks

Only string objects can be converted.

Applies to