UnitConverter Class
.NET Framework 3.0
Converts from a Unit object to an object of another data type and from another type to a Unit object.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
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.
Community Additions
ADD
Show:
Note:
Caution: