Прочетете на английски Редактиране

Споделяне чрез


MemoryMappedFile.SetAccessControl(MemoryMappedFileSecurity) Method

Definition

Sets the access control to the memory-mapped file resource.

C#
[System.Security.SecurityCritical]
public void SetAccessControl(System.IO.MemoryMappedFiles.MemoryMappedFileSecurity memoryMappedFileSecurity);

Parameters

memoryMappedFileSecurity
MemoryMappedFileSecurity

The permissions that can be granted for file access and operations on memory-mapped files.

Attributes

Exceptions

memoryMappedFileSecurity 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.

Applies to

Продукт Версии
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also