Environment.SystemPageSize 屬性

定義

取得作業系統記憶體分頁中的位元組數目。

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

屬性值

系統記憶體分頁中的位元組數目。

備註

當您使用記憶體對應檔案時,判斷是否要使用 選項時, MemoryMappedFileOptions.DelayAllocatePages 這項資訊非常有用。

在 Windows 中,這個值是 dwPageSize 結構中的 SYSTEM_INFO 成員。

適用於