ToIntPtr Method
Collapse the table of content
Expand the table of content

GCHandle.ToIntPtr Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

Returns the internal integer representation of a GCHandle object.

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

'Declaration
Public Shared Function ToIntPtr ( _
	value As GCHandle _
) As IntPtr

Parameters

value
Type: System.Runtime.InteropServices.GCHandle
A GCHandle object to retrieve an internal integer representation from.

Return Value

Type: System.IntPtr
An IntPtr object that represents a GCHandle object.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft