Bewerken

Delen via


DataSourceCacheDurationConverter.CanConvertTo Method

Definition

Returns a value indicating whether the DataSourceCacheDurationConverter instance can convert an object to the given destination type.

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

Parameters

context
ITypeDescriptorContext

An ITypeDescriptorContext that provides a format context.

destinationType
Type

A Type that represents the type to which you want to convert.

Returns

true if this converter can perform the operation; otherwise, false.

Remarks

The DataSourceCacheDurationConverter explicitly handles conversion to string and InstanceDescriptor types. Otherwise, it calls on its base class, Int32Converter, to make the determination.

Applies to