This documentation is archived and is not being maintained.
Convert Class
Visual Studio 2010
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Converts data from one type to another. This is a utility class.
Assembly: Microsoft.JScript (in Microsoft.JScript.dll)
The Convert type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | CheckIfDoubleIsInteger | Determines whether a Double variable contains an integer value. |
![]() ![]() | CheckIfSingleIsInteger | Determines whether a Single variable contains an integer value. |
![]() ![]() | Coerce | Converts the specified value to the specified type. |
![]() ![]() | Coerce2 | Converts the specified value to the specified TypeCode, optionally allowing data loss. |
![]() ![]() | CoerceT | Converts the specified value to the specified Type, optionally allowing data loss. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() ![]() | IsBadIndex | Determines whether a variable contains an array index value. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | ThrowTypeMismatch | Throws a JScriptException exception in all cases. |
![]() ![]() | ToBoolean(Double) | Converts the specified Double to a Boolean. |
![]() ![]() | ToBoolean(Object) | Converts the specified Object to a Boolean. |
![]() ![]() | ToBoolean(Object, Boolean) | Converts the specified Object value to a Boolean structure, optionally allowing data loss. |
![]() ![]() | ToForInObject | Converts the specified value to an Object that represents a collection of AST objects. |
![]() ![]() | ToInt32 | Converts the specified value to an Int32. |
![]() ![]() | ToNativeArray | Converts the specified ArrayObject to a typed Array. |
![]() ![]() | ToNumber(Object) | Converts the specified Object to a Double. |
![]() ![]() | ToNumber(String) | Converts the specified String to a Double. |
![]() ![]() | ToObject | Converts the specified value to an Object. Throws an error if it cannot perform the conversion. |
![]() ![]() | ToObject2 | Converts the specified value to an Object. Returns null if it cannot perform the conversion. |
![]() | ToString() | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() | ToString(Boolean) | Converts the specified Boolean to a String. |
![]() ![]() | ToString(Double) | Converts the specified Double to a String. |
![]() ![]() | ToString(Object, Boolean) | Converts the specified Object to a String, optionally allowing data loss. |
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:
