MobileTypeNameConverter::ConvertTo Method (ITypeDescriptorContext^, CultureInfo^, Object^, Type^)
.NET Framework (current version)
Converts the given value object to the specified type, 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^ ConvertTo( ITypeDescriptorContext^ ctx, CultureInfo^ ci, Object^ value, Type^ targetType ) override
Parameters
- ctx
-
Type:
System.ComponentModel::ITypeDescriptorContext^
An ITypeDescriptorContext that provides a format context.
- ci
-
Type:
System.Globalization::CultureInfo^
A CultureInfo. If null is passed, the current culture is assumed.
- value
-
Type:
System::Object^
The Object to convert.
- targetType
-
Type:
System::Type^
The Type to convert the value parameter to.
| Exception | Condition |
|---|---|
| ArgumentException | value cannot be converted to a type. |
.NET Framework
Available since 2.0
Available since 2.0
Show: