共用方式為


ThreadingAclExtensions.SetAccessControl 方法

定義

多載

SetAccessControl(EventWaitHandle, EventWaitHandleSecurity)

設定所指定事件等候控制代碼的安全性描述元。

SetAccessControl(Mutex, MutexSecurity)

設定所指定 mutex 的安全性描述元。

SetAccessControl(Semaphore, SemaphoreSecurity)

設定所指定旗號的安全性描述元。

SetAccessControl(EventWaitHandle, EventWaitHandleSecurity)

來源:
ThreadingAclExtensions.cs
來源:
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)

來源:
ThreadingAclExtensions.cs
來源:
ThreadingAclExtensions.cs

設定所指定 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)

參數

mutex
Mutex

將在此 mutex 上套用 mutexSecurity

mutexSecurity
MutexSecurity

要套用至所指定 mutex 的安全性描述元。

例外狀況

mutexSecuritynull

適用於

SetAccessControl(Semaphore, SemaphoreSecurity)

來源:
ThreadingAclExtensions.cs
來源:
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

適用於