This documentation is archived and is not being maintained.

IntPtr.Size Property

Gets the size of this instance.

[Visual Basic]
Public Shared ReadOnly Property Size As Integer
[C#]
public static int Size {get;}
[C++]
public: __property static int get_Size();
[JScript]
public static function get Size() : int;

Property Value

The size of a pointer or handle on this platform, measured in bytes. The value of this property is 4 on a 32-bit platform, and 8 on a 64-bit platform.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

IntPtr Structure | IntPtr Members | System Namespace

Show: