Επεξεργασία

Κοινή χρήση μέσω


ThreadingAclExtensions.SetAccessControl Method

Definition

Overloads

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.

SetAccessControl(EventWaitHandle, EventWaitHandleSecurity)

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

SetAccessControl(Mutex, MutexSecurity)

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

SetAccessControl(Semaphore, SemaphoreSecurity)

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