Convert Class
This API supports the product 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)
| Name | Description | |
|---|---|---|
![]() | Convert() | This API supports the product infrastructure and is not intended to be used directly from your code. Initializes a new instance of the Convert class. |
| Name | Description | |
|---|---|---|
![]() ![]() | CheckIfDoubleIsInteger(Double) | This API supports the product infrastructure and is not intended to be used directly from your code. Determines whether a Double variable contains an integer value. |
![]() ![]() | CheckIfSingleIsInteger(Single) | This API supports the product infrastructure and is not intended to be used directly from your code. Determines whether a Single variable contains an integer value. |
![]() ![]() | Coerce(Object^, Object^) | This API supports the product infrastructure and is not intended to be used directly from your code. Converts the specified value to the specified type. |
![]() ![]() | Coerce2(Object^, TypeCode, Boolean) | This API supports the product infrastructure and is not intended to be used directly from your code. Converts the specified value to the specified TypeCode, optionally allowing data loss. |
![]() ![]() | CoerceT(Object^, Type^, Boolean) | This API supports the product infrastructure and is not intended to be used directly from your code. 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.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() ![]() | IsBadIndex(AST^) | This API supports the product infrastructure and is not intended to be used directly from your code. Determines whether a variable contains an array index value. |
![]() ![]() | ThrowTypeMismatch(Object^) | This API supports the product infrastructure and is not intended to be used directly from your code. Throws a JScriptException exception in all cases. |
![]() ![]() | ToBoolean(Double) | |
![]() ![]() | ToBoolean(Object^) | |
![]() ![]() | ToBoolean(Object^, Boolean) | |
![]() ![]() | ToForInObject(Object^, VsaEngine^) | |
![]() ![]() | ToInt32(Object^) | This API supports the product infrastructure and is not intended to be used directly from your code. Converts the specified value to an Int32. |
![]() ![]() | ToNativeArray(Object^, RuntimeTypeHandle) | This API supports the product infrastructure and is not intended to be used directly from your code. Converts the specified ArrayObject to a typed Array. |
![]() ![]() | ToNumber(Object^) | |
![]() ![]() | ToNumber(String^) | |
![]() ![]() | ToObject(Object^, VsaEngine^) | This API supports the product infrastructure and is not intended to be used directly from your code. Converts the specified value to an Object. Throws an error if it cannot perform the conversion. |
![]() ![]() | ToObject2(Object^, VsaEngine^) | This API supports the product infrastructure and is not intended to be used directly from your code. 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) | |
![]() ![]() | ToString(Double) | |
![]() ![]() | ToString(Object^, Boolean) |
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

