IntPtr.Size 属性
定义
获取此实例的大小。Gets the size of this instance.
public:
static property int Size { int get(); };
public static int Size { get; }
member this.Size : int
Public Shared ReadOnly Property Size As Integer
属性值
此进程中的指针或句柄的大小(以字节为单位)。The size of a pointer or handle in this process, measured in bytes. 此属性的值在 32 位进程中为 4,在 64 位进程中为 8。The value of this property is 4 in a 32-bit process, and 8 in a 64-bit process. 通过 C# 和 Visual Basic 编译器编译代码时,可以通过设置 /platform 开关定义该进程类型。You can define the process type by setting the /platform switch when you compile your code with the C# and Visual Basic compilers.