VectorConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

判斷 Vector 的執行個體是否可轉換為指定的型別。

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

要評估這個 Vector 是否能轉換到的型別。

傳回

Boolean

如果 Vector 的執行個體可以轉換成 destinationType 則為 true,否則為 false

適用於