KeyTimeConverter.CanConvertFrom(ITypeDescriptorContext, Type) 方法

定義

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

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

參數

typeDescriptorContext
ITypeDescriptorContext

轉換時所需的內容資訊。

type
Type

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

傳回

如果這個型別是可轉換的則為 true,否則為 false

適用於