IntPtr.Size IntPtr.Size IntPtr.Size IntPtr.Size Property

Definition

Gets the size of this instance.

public:
 static property int Size { int get(); };
[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
public static int Size { get; }
member this.Size : int
Public Shared ReadOnly Property Size As Integer
Property Value

The size of a pointer or handle in this process, measured in bytes. The value of this property is 4 in a 32-bit process, and 8 in a 64-bit process. You can define the process type by setting the /platform switch when you compile your code with the C# and Visual Basic compilers.

Applies to