System.Windows.Forms.ListViewItemConverter.CanConvertTo Method

Gets a value indicating whether this converter can convert an object to the given destination type using the context.

Syntax

public override bool CanConvertTo (System.ComponentModel.ITypeDescriptorContext context, Type destinationType)

Parameters

context
An System.ComponentModel.ITypeDescriptorContext that provides a format context.
destinationType
A Type that represents the type you wish to convert to.

Returns

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

Remarks

The context parameter can be used to extract additional information about the environment this converter is being invoked from. This can be null, so always check. Also, properties on the context object can return null.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0