แก้ไข

แชร์ผ่าน


InputScopeConverter.CanConvertFrom(ITypeDescriptorContext, Type) Method

Definition

Determines whether an InputScope object can be converted from an object of a specified 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

An object that describes any type descriptor context. This object must implement the ITypeDescriptorContext interface. This parameter may be null.

sourceType
Type

A Type to check for conversion compatibility.

Returns

true if sourceType is type String; otherwise, false.

Applies to