<PackageReference Include="System.Security.AccessControl" Version="6.0.0" />

NativeObjectSecurity

public abstract class NativeObjectSecurity : CommonObjectSecurity
Provides the ability to control access to native objects without direct manipulation of Access Control Lists (ACLs). Native object types are defined by the ResourceType enumeration.
protected NativeObjectSecurity(bool isContainer, ResourceType resourceType)

Initializes a new instance of the NativeObjectSecurity class with the specified values.

protected NativeObjectSecurity(bool isContainer, ResourceType resourceType, SafeHandle handle, AccessControlSections includeSections)

Initializes a new instance of the NativeObjectSecurity class with the specified values. We recommend that the values of the includeSections parameters passed to the constructor and persist methods be identical.

protected NativeObjectSecurity(bool isContainer, ResourceType resourceType, SafeHandle handle, AccessControlSections includeSections, ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext)

Initializes a new instance of the NativeObjectSecurity class with the specified values. We recommend that the values of the includeSections parameters passed to the constructor and persist methods be identical.

protected NativeObjectSecurity(bool isContainer, ResourceType resourceType, ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext)

Initializes a new instance of the NativeObjectSecurity class by using the specified values.

protected NativeObjectSecurity(bool isContainer, ResourceType resourceType, string name, AccessControlSections includeSections)

Initializes a new instance of the NativeObjectSecurity class with the specified values. We recommend that the values of the includeSections parameters passed to the constructor and persist methods be identical.

protected NativeObjectSecurity(bool isContainer, ResourceType resourceType, string name, AccessControlSections includeSections, ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext)

Initializes a new instance of the NativeObjectSecurity class with the specified values. We recommend that the values of the includeSections parameters passed to the constructor and persist methods be identical.

protected void Persist(SafeHandle handle, AccessControlSections includeSections, object exceptionContext)

Saves the specified sections of the security descriptor associated with this NativeObjectSecurity object to permanent storage. We recommend that the values of the includeSections parameters passed to the constructor and persist methods be identical.

protected void Persist(string name, AccessControlSections includeSections, object exceptionContext)

Saves the specified sections of the security descriptor associated with this NativeObjectSecurity object to permanent storage. We recommend that the values of the includeSections parameters passed to the constructor and persist methods be identical.