ThreadingAclExtensions.SetAccessControl 方法

定义

重载

SetAccessControl(EventWaitHandle, EventWaitHandleSecurity)

设置指定事件等待句柄的安全描述符。

SetAccessControl(Mutex, MutexSecurity)

设置指定互斥体的安全描述符。

SetAccessControl(Semaphore, SemaphoreSecurity)

设置指定信号灯的安全描述符。

SetAccessControl(EventWaitHandle, EventWaitHandleSecurity)

Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs

设置指定事件等待句柄的安全描述符。

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)

参数

handle
EventWaitHandle

要应用 eventSecurity 的事件等待句柄。

eventSecurity
EventWaitHandleSecurity

要应用到指定 handle 的安全描述符。

例外

eventSecuritynull

适用于

SetAccessControl(Mutex, MutexSecurity)

Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs

设置指定互斥体的安全描述符。

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)

参数

mutex
Mutex

要应用 mutexSecurity 的互斥体。

mutexSecurity
MutexSecurity

要应用到指定 mutex 的安全描述符。

例外

mutexSecuritynull

适用于

SetAccessControl(Semaphore, SemaphoreSecurity)

Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs
Source:
ThreadingAclExtensions.cs

设置指定信号灯的安全描述符。

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)

参数

semaphore
Semaphore

要应用 semaphoreSecurity 的信号灯。

semaphoreSecurity
SemaphoreSecurity

要应用到指定 semaphore 的安全描述符。

例外

semaphoreSecuritynull

适用于