ServiceXNameTypeConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

取得可指示此轉換子是否可將 XName 執行個體轉換成指定型別物件的值。

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

型別描述項內容。

destinationType
Type

要轉換的目標類型。

傳回

Boolean

如果這個轉換器可以執行轉換,則為 true,否則為 false

適用於