IntPtr Narrowing Conversion (IntPtr to Int32)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Converts the value of the specified IntPtr to a 32-bit signed integer.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- value
- Type: System.IntPtr
An IntPtr.
| Exception | Condition |
|---|---|
| OverflowException | On a 64-bit platform, the value of value is too large to represent as a 32-bit signed integer. |
Show: