ThreadingAclExtensions.SetAccessControl 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SetAccessControl(EventWaitHandle, EventWaitHandleSecurity) |
設定所指定事件等候控制代碼的安全性描述元。 |
SetAccessControl(Mutex, MutexSecurity) |
設定所指定 mutex 的安全性描述元。 |
SetAccessControl(Semaphore, SemaphoreSecurity) |
設定所指定旗號的安全性描述元。 |
SetAccessControl(EventWaitHandle, EventWaitHandleSecurity)
設定所指定事件等候控制代碼的安全性描述元。
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
的安全性描述元。
例外狀況
eventSecurity
為 null
。
適用於
SetAccessControl(Mutex, MutexSecurity)
設定所指定 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
的安全性描述元。
例外狀況
mutexSecurity
為 null
。
適用於
SetAccessControl(Semaphore, SemaphoreSecurity)
設定所指定旗號的安全性描述元。
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
的安全性描述元。
例外狀況
semaphoreSecurity
為 null
。