DataColumnSelectionConverter.ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)

Converts the specified object to the type of the associated control property.

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

public:
virtual Object^ ConvertFrom (
	ITypeDescriptorContext^ context, 
	CultureInfo^ culture, 
	Object^ value
) override
public Object ConvertFrom (
	ITypeDescriptorContext context, 
	CultureInfo culture, 
	Object value
)
public override function ConvertFrom (
	context : ITypeDescriptorContext, 
	culture : CultureInfo, 
	value : Object
) : Object
Not applicable.

Parameters

context

An ITypeDescriptorContext implementation that can be used to gain additional context information.

culture

The CultureInfo object that can be used to support localization features.

value

The object to convert.

Return Value

An Object instance that represents the converted object.

Exception typeCondition

NotSupportedException

The conversion could not be performed.

If value is a string, then the string representation of value is returned. If value is a null reference (Nothing in Visual Basic), an empty string ("") is returned. For all other values, a NotSupportedException exception is thrown.

Call the CanConvertFrom method to determine whether the ConvertFrom method supports converting the source type.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: