ThreadingAclExtensions.SetAccessControl Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| SetAccessControl(EventWaitHandle, EventWaitHandleSecurity) |
Anger säkerhetsbeskrivningarna för det angivna händelseväntehandtaget. |
| SetAccessControl(Mutex, MutexSecurity) |
Anger säkerhetsbeskrivningarna för angiven mutex. |
| SetAccessControl(Semaphore, SemaphoreSecurity) |
Anger säkerhetsbeskrivningarna för den angivna semaforen. |
SetAccessControl(EventWaitHandle, EventWaitHandleSecurity)
Anger säkerhetsbeskrivningarna för det angivna händelseväntehandtaget.
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)
Parametrar
- handle
- EventWaitHandle
Händelseväntehandtaget eventSecurity som ska tillämpas på.
- eventSecurity
- EventWaitHandleSecurity
De säkerhetsbeskrivningar som ska tillämpas på den angivna handle.
Undantag
eventSecurity är null.
Gäller för
SetAccessControl(Mutex, MutexSecurity)
Anger säkerhetsbeskrivningarna för angiven 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)
Parametrar
- mutex
- Mutex
Mutex som mutexSecurity ska tillämpas på.
- mutexSecurity
- MutexSecurity
De säkerhetsbeskrivningar som ska tillämpas på den angivna mutex.
Undantag
mutexSecurity är null.
Gäller för
SetAccessControl(Semaphore, SemaphoreSecurity)
Anger säkerhetsbeskrivningarna för den angivna semaforen.
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)
Parametrar
- semaphore
- Semaphore
Den semafor på vilken semaphoreSecurity kommer att tillämpas.
- semaphoreSecurity
- SemaphoreSecurity
De säkerhetsbeskrivningar som ska tillämpas på den angivna semaphore.
Undantag
semaphoreSecurity är null.