MemoryMappedFile.SetAccessControl(MemoryMappedFileSecurity) MemoryMappedFile.SetAccessControl(MemoryMappedFileSecurity) MemoryMappedFile.SetAccessControl(MemoryMappedFileSecurity) Method

定義

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

public:
 void SetAccessControl(System::IO::MemoryMappedFiles::MemoryMappedFileSecurity ^ memoryMappedFileSecurity);
[System.Security.SecurityCritical]
public void SetAccessControl (System.IO.MemoryMappedFiles.MemoryMappedFileSecurity memoryMappedFileSecurity);
member this.SetAccessControl : System.IO.MemoryMappedFiles.MemoryMappedFileSecurity -> unit

參數

memoryMappedFileSecurity
MemoryMappedFileSecurity MemoryMappedFileSecurity MemoryMappedFileSecurity

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

例外狀況

memoryMappedFileSecuritynullmemoryMappedFileSecurity is null.

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

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

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

適用於

另請參閱