TreeNodeBindingDepthConverter.ConvertTo Method (ITypeDescriptorContext, CultureInfo, Object, Type)

 

Converts the object to the specified type using the provided context and culture information.

Namespace:   System.Web.UI.Design.WebControls
Assembly:  System.Design (in System.Design.dll)

override ConvertTo : 
        context:ITypeDescriptorContext *
        culture:CultureInfo *
        value:Object *
        destinationType:Type -> Object

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

A ITypeDescriptorContext that provides a format context.

culture
Type: System.Globalization.CultureInfo

The CultureInfo to use as the current culture.

value
Type: System.Object

The object to convert.

destinationType
Type: System.Type

The Type to convert the value to.

Return Value

Type: System.Object

An object that represents the converted value.

.NET Framework
Available since 2.0
Return to top
Show: