ThreadingAclExtensions.SetAccessControl Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
SetAccessControl(EventWaitHandle, EventWaitHandleSecurity) |
Sets the security descriptors for the specified event wait handle. |
SetAccessControl(Mutex, MutexSecurity) |
Sets the security descriptors for the specified mutex. |
SetAccessControl(Semaphore, SemaphoreSecurity) |
Sets the security descriptors for the specified semaphore. |
- Source:
- ThreadingAclExtensions.cs
- Source:
- ThreadingAclExtensions.cs
- Source:
- ThreadingAclExtensions.cs
- Source:
- ThreadingAclExtensions.cs
Sets the security descriptors for the specified event wait handle.
public:
[System::Runtime::CompilerServices::Extension]
static void SetAccessControl(System::Threading::EventWaitHandle ^ handle, System::Security::AccessControl::EventWaitHandleSecurity ^ eventSecurity);
public static void SetAccessControl (this System.Threading.EventWaitHandle handle, System.Security.AccessControl.EventWaitHandleSecurity eventSecurity);
static member SetAccessControl : System.Threading.EventWaitHandle * System.Security.AccessControl.EventWaitHandleSecurity -> unit
<Extension()>
Public Sub SetAccessControl (handle As EventWaitHandle, eventSecurity As EventWaitHandleSecurity)
Parameters
- handle
- EventWaitHandle
The event wait handle onto which the eventSecurity
will be applied.
- eventSecurity
- EventWaitHandleSecurity
The security descriptors to apply to the specified handle
.
Exceptions
eventSecurity
is null
.
Applies to
.NET 9 (package-provided) e outras versões
Produto | Versões |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
- Source:
- ThreadingAclExtensions.cs
- Source:
- ThreadingAclExtensions.cs
- Source:
- ThreadingAclExtensions.cs
- Source:
- ThreadingAclExtensions.cs
Sets the security descriptors for the specified mutex.
public:
[System::Runtime::CompilerServices::Extension]
static void SetAccessControl(System::Threading::Mutex ^ mutex, System::Security::AccessControl::MutexSecurity ^ mutexSecurity);
public static void SetAccessControl (this System.Threading.Mutex mutex, System.Security.AccessControl.MutexSecurity mutexSecurity);
static member SetAccessControl : System.Threading.Mutex * System.Security.AccessControl.MutexSecurity -> unit
<Extension()>
Public Sub SetAccessControl (mutex As Mutex, mutexSecurity As MutexSecurity)
Parameters
- mutex
- Mutex
The mutex onto which the mutexSecurity
will be applied.
- mutexSecurity
- MutexSecurity
The security descriptors to apply to the specified mutex
.
Exceptions
mutexSecurity
is null
.
Applies to
.NET 9 (package-provided) e outras versões
Produto | Versões |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
- Source:
- ThreadingAclExtensions.cs
- Source:
- ThreadingAclExtensions.cs
- Source:
- ThreadingAclExtensions.cs
- Source:
- ThreadingAclExtensions.cs
Sets the security descriptors for the specified semaphore.
public:
[System::Runtime::CompilerServices::Extension]
static void SetAccessControl(System::Threading::Semaphore ^ semaphore, System::Security::AccessControl::SemaphoreSecurity ^ semaphoreSecurity);
public static void SetAccessControl (this System.Threading.Semaphore semaphore, System.Security.AccessControl.SemaphoreSecurity semaphoreSecurity);
static member SetAccessControl : System.Threading.Semaphore * System.Security.AccessControl.SemaphoreSecurity -> unit
<Extension()>
Public Sub SetAccessControl (semaphore As Semaphore, semaphoreSecurity As SemaphoreSecurity)
Parameters
- semaphore
- Semaphore
The semaphore onto which the semaphoreSecurity
will be applied.
- semaphoreSecurity
- SemaphoreSecurity
The security descriptors to apply to the specified semaphore
.
Exceptions
semaphoreSecurity
is null
.
Applies to
.NET 9 (package-provided) e outras versões
Produto | Versões |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided) |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: