The PrivilegeEnabler type exposes the following members.
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).
Makes sure any privileges enabled by this instance are disabled.
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as a hash function for a particular type.(Inherited from Object.)
Gets the Type of the current instance.(Inherited from Object.)
Creates a shallow copy of the current Object.(Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
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.