語言

InputScopeConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

判斷物件是否 InputScope 能轉換為指定類型的物件。

public:
 override bool CanConvertTo(System::ComponentModel::ITypeDescriptorContext ^ context, Type ^ destinationType);
public override bool CanConvertTo(System.ComponentModel.ITypeDescriptorContext context, Type destinationType);
override this.CanConvertTo : System.ComponentModel.ITypeDescriptorContext * Type -> bool
Public Overrides Function CanConvertTo (context As ITypeDescriptorContext, destinationType As Type) As Boolean

參數

context
ITypeDescriptorContext

一個描述任意型別描述符上下文的物件。 這個物件必須實作該 ITypeDescriptorContext 介面。 此參數可以是 null。

destinationType
Type

A Type 用來檢查轉換相容性。

傳回

true若 destinationType 是型態String;否則,。 false

適用於