MemoryMappedFile.GetAccessControl MemoryMappedFile.GetAccessControl MemoryMappedFile.GetAccessControl MemoryMappedFile.GetAccessControl Method

定義

取得記憶體對應檔資源的存取控制。Gets the access control to the memory-mapped file resource.

public:
 System::IO::MemoryMappedFiles::MemoryMappedFileSecurity ^ GetAccessControl();
[System.Security.SecurityCritical]
public System.IO.MemoryMappedFiles.MemoryMappedFileSecurity GetAccessControl ();
member this.GetAccessControl : unit -> System.IO.MemoryMappedFiles.MemoryMappedFileSecurity
Public Function GetAccessControl () As MemoryMappedFileSecurity

傳回

允許對記憶體對應檔進行檔案存取及作業的可授與權限。The permissions that can be granted for file access and operations on memory-mapped files.

例外狀況

設定安全性資訊的基礎呼叫失敗。An underlying call to set security information failed.

設定安全性資訊的基礎呼叫失敗。An underlying call to set security information failed.

已關閉記憶體對應檔案。The memory-mapped file is closed.

目前的平台是 Windows 98 (含) 更早版本。The current platform is Windows 98 or earlier.

設定安全性資訊的基礎呼叫失敗。An underlying call to set security information failed.

-或--or- 記憶體對應檔案只會以 Write 開啟。The memory-mapped file was opened as Write only.

適用於

另請參閱