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

要查詢是否受到支援的型別。

傳回

Boolean

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

備註

CanConvertTo.NET Framework 3.5 版引進。 如需詳細資訊,請參閱版本和相依性

適用於