RepeatBehaviorConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

判斷是否可轉換為指定的型別。

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

正在評估進行轉換的目的型別。

傳回

Boolean

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

備註

只支援 StringInstanceDescriptor 目的型別。

適用於