System.Windows.Forms.LinkConverter.ConvertTo Method

Converts the specified object to another type.

Syntax

public override object ConvertTo (System.ComponentModel.ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)

Parameters

context
An System.ComponentModel.ITypeDescriptorContext providing contextual information about the object to be converted.
culture
Cultural attributes of the object to be converted. If this parameter is null, the System.Globalization.CultureInfo.CurrentCulture property value is used.
value
The object to be converted.
destinationType
The type to convert the object to.

Returns

The converted object.

Remarks

The most common conversion is from one string to another string. The default implementation calls object.ToString on the object if the object is valid and if the destinationType is string.

Requirements

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