Click or drag to resize

PrivilegeEnabler Constructor

Initializes a new instance of the PrivilegeEnabler class. This will enable the privileges specified (unless already enabled), and ensure that they are disabled again when the object is disposed. (Any privileges already enabled will not be disabled).

Namespace:  Alphaleonis.Win32.Security
Assembly:  AlphaFS (in AlphaFS.dll) Version: 2.2
Syntax
public PrivilegeEnabler(
	Privilege privilege,
	params Privilege[] privileges
)

Parameters

privilege
Type: Alphaleonis.Win32.SecurityPrivilege
The privilege to enable.
privileges
Type: Alphaleonis.Win32.SecurityPrivilege
Additional privileges to enable.
See Also