DataSourceCacheDurationConverter.CanConvertTo Method       
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 -> boolPublic Overrides Function CanConvertTo (context As ITypeDescriptorContext, destinationType As Type) As BooleanParameters
- context
- ITypeDescriptorContext
An ITypeDescriptorContext that provides a format context.
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.