VectorCollectionConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法

定義

判斷物件是否可從指定型別轉換成 VectorCollection 的執行個體。

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

參數

context
ITypeDescriptorContext

型別的內容資訊。

sourceType
Type

要評估進行轉換的來源型別。

傳回

如果可以將型別轉換為 VectorCollection 則為 true,否則為 false

適用於