UnitConverter Class
Assembly: System.Web (in system.web.dll)
Use the UnitConverter class to convert a Unit to an object of another data type. You can also use the UnitConverter class to convert an object of another data type to a Unit.
Note |
|---|
| This converter can convert only a string to Unit and a Unit to a string. |
Caution |
|---|
| You should never access a type converter directly. Instead, call the appropriate converter by using System.ComponentModel.TypeDescriptor. For more information, see the examples in the System.ComponentModel.TypeConverter base class. |
- AspNetHostingPermission for operating in a hosted environment. Demand value: LinkDemand. Permission value: Minimal.
- AspNetHostingPermission for operating in a hosted environment. Demand value: InheritanceDemand. Permission value: Minimal.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Note
Caution