RequestCachePolicyConverter.CanConvertTo(ITypeDescriptorContext, Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個值,指示此轉換器是否能在指定的上下文下將物件轉換為指定型別。
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 版本中引入。 欲了解更多資訊,請參閱 版本與相依關係。