Int32CollectionConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法

定義

判斷轉換子是否可以將指定型別的物件轉換成 Int32Collection 的執行個體。

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

正在評估以進行轉換之來源的型別。

傳回

如果轉換子可將提供的型別轉換成 Int32Collection 的執行個體則為 true,否則為 false

適用於