IntPtr.Size 屬性

定義

取得這個執行個體的大小。

public:
 static property int Size { int get(); };
public static int Size { get; }
static member Size : int
Public Shared ReadOnly Property Size As Integer

屬性值

執行進程中帶正負號整數的大小,以位元組為單位。 這個屬性的值在 32 位元處理序中為 4,而在 64 位元處理序中為 8。 您可以定義程序類型,方法是在使用 C# 和 Visual Basic 編譯器編譯程式碼時,設定 /platform 參數。

適用於