CacheModeConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

判斷這個 CacheModeConverter 是否可以使用指定內容將 CacheMode 轉換為指定型別的執行個體。

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

ITypeDescriptorContext,提供格式內容。

destinationType
Type

型別,表示要轉換成的型別。

傳回

如果這個 CacheModeConverter 可以執行轉換則為 true,否則為 false

適用於