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.0
Syntax public PrivilegeEnabler(
Privilege privilege,
params Privilege[] privileges
)
Public Sub New (
privilege As Privilege,
ParamArray privileges As Privilege()
)
public:
PrivilegeEnabler(
Privilege^ privilege,
... array<Privilege^>^ privileges
)
new :
privilege : Privilege *
privileges : Privilege[] -> PrivilegeEnabler
Parameters
- privilege
- Type: Alphaleonis.Win32.SecurityPrivilege
The privilege to enable. - privileges
- Type: Alphaleonis.Win32.SecurityPrivilege
Additional privileges to enable.
See Also