MobileTypeNameConverter::ConvertFrom Method (ITypeDescriptorContext^, CultureInfo^, Object^)

 

Converts the given object to the type of this converter, using the specified context and culture information. This API is obsolete. For information about how to develop ASP.NET mobile applications, see the www.asp.net/mobile Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

public:
virtual Object^ ConvertFrom(
	ITypeDescriptorContext^ ctx,
	CultureInfo^ ci,
	Object^ data
) override

Parameters

ctx
Type: System.ComponentModel::ITypeDescriptorContext^

An ITypeDescriptorContext that provides a format context.

ci
Type: System.Globalization::CultureInfo^

The CultureInfo to use as the current culture.

data
Type: System::Object^

The Object to convert.

Return Value

Type: System::Object^

An Object that represents the converted value.

Exception Condition
ConfigurationErrorsException

Calling GetType on data returns null.

This implementation of ConvertFrom casts data as a string and then calls the GetType method on it. The result, a new Type, is then returned. However, if the result is null, an exception will be thrown.

.NET Framework
Available since 2.0
Return to top
Show: