ToInt32 Method
Collapse the table of content
Expand the table of content

IntPtr.ToInt32 Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Converts the value of this instance to a 32-bit signed integer.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public int ToInt32()

Return Value

Type: System.Int32
A 32-bit signed integer equal to the value of this instance.

ExceptionCondition
OverflowException

On a 64-bit platform, the value of this instance is too large or too small to represent as a 32-bit signed integer.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2016 Microsoft