PrivilegeEnabler Class |
Namespace: Alphaleonis.Win32.Security
The PrivilegeEnabler type exposes the following members.
Name | Description | |
---|---|---|
PrivilegeEnabler | 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).
|
Name | Description | |
---|---|---|
EnabledPrivileges | Gets the enabled privileges. Note that this might not contain all privileges specified to the constructor. Only the privileges actually enabled by this instance is returned. |
Name | Description | |
---|---|---|
Dispose | Makes sure any privileges enabled by this instance are disabled. | |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |