IntPtr.ToInt32 Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts the value of this instance to a 32-bit signed integer.
public:
int ToInt32();
public int ToInt32 ();
member this.ToInt32 : unit -> int
Public Function ToInt32 () As Integer
Returns
A 32-bit signed integer equal to the value of this instance.
Exceptions
In a 64-bit process, the value of this instance is too large or too small to represent as a 32-bit signed integer.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.