ObjectConverter.ConvertValue Method (Object, Type, String)
.NET Framework (current version)
This API supports the product infrastructure and is not intended to be used directly from your code.
Converts an object from one object type to another object type. This class is obsolete. Use the Convert class and the Format method instead.
Assembly: System.Web (in System.Web.dll)
Parameters
- value
-
Type:
System.Object
The object to convert.
- toType
-
Type:
System.Type
The Type to convert value to.
- formatString
-
Type:
System.String
The format string to apply during conversion.
| Exception | Condition |
|---|---|
| ArgumentException | Value cannot be converted to type toType with this method. |
.NET Framework
Available since 1.1
Available since 1.1
Show: