StringCollectionConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

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

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

要轉換的目標類型。

傳回

如果可進行轉換則為 true,否則為 false

適用於