This documentation is archived and is not being maintained.
MobileTypeNameConverter::ConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object)
Visual Studio 2010
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.
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.
| Exception | Condition |
|---|---|
| ConfigurationErrorsException | Calling GetType on data returns nullptr. |
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 nullptr, an exception will be thrown.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: