Represents a privilege for an access token. The privileges available on the local machine are available as static instances from this class. To create a Privilege representing a privilege on another system, use the constructor specifying a system name together with one of these static instances.
Used to enable one or more privileges. The privileges specified will be enabled during the lifetime of the instance. Users create an instance of this object in a using statement to ensure that it is properly disposed when the elevated privileges are no longer needed.