DataSourceCacheDurationConverter.CanConvertTo 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳一個值,表示該實例是否 DataSourceCacheDurationConverter 能將物件轉換為指定的目的類型。
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 。
傳回
true如果這個轉換器能執行該操作;否則,。 false
備註
它 DataSourceCacheDurationConverter 明確處理轉換到 string 和 InstanceDescriptor 類型。 否則,它會呼叫其基底類別 Int32Converter,來判定。