XmlLanguageConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

傳回值,指出這個轉換子是否可以將物件轉換成指定的型別。

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

參數

typeDescriptorContext
ITypeDescriptorContext

提供格式內容的 ITypeDescriptorContext

destinationType
Type

要轉換的目標型別。

傳回

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

備註

這個方法會true針對 destinationTypeInstanceDescriptordestinationType 傳回 。String

適用於

另請參閱