KeyGestureConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

使用指定的內容,判斷 KeyGesture 的執行個體是否可以轉換成指定的型別。Determines whether an instance of KeyGesture can be converted to the specified type, using the specified context.

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

格式內容,提供正在叫用此轉換器之環境的相關資訊。A format context that provides information about the environment from which this converter is being invoked.

destinationType
Type

正在評估以進行轉換的型別。The type being evaluated for conversion.

傳回

如果 destinationType 的型別為 String 則為 true,否則為 falsetrue if destinationType is type String; otherwise, false.

適用於