UnitConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

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

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,表示要轉換的物件內容。

destinationType
Type

Type,表示要轉換成的資料型別。

傳回

Boolean

如果轉換子支援將 Unit 物件轉換成目的型別,則為 true,否則為 false

適用於

另請參閱