語言

RequestCachePolicyConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法

定義

回傳一個值,指示此轉換器是否能在指定的上下文下將物件轉換為指定型別。

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

參數

typeDescriptorContext
ITypeDescriptorContext

格式的背景。

destinationType
Type

那種被要求支援的類型。

傳回

true如果這個轉換器能執行轉換;否則,。 false

備註

CanConvertTo 於 .NET Framework 3.5 版本中引入。 欲了解更多資訊,請參閱 版本與相依關係。

適用於