C# Class System.Security.AccessControl.Privilege

Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
Enable ( ) : void
Privilege ( string privilegeName ) : Microsoft.Win32
Revert ( ) : void
RunWithPrivilege ( string privilege, bool enabled, PrivilegedHelper helper ) : void

Private Methods

Method Description
LuidFromPrivilege ( string privilege ) : Interop.Advapi32.LUID
Reset ( ) : void
ToggleState ( bool enable ) : void

Method Details

Enable() public method

public Enable ( ) : void
return void

Privilege() public method

public Privilege ( string privilegeName ) : Microsoft.Win32
privilegeName string
return Microsoft.Win32

Revert() public method

public Revert ( ) : void
return void

RunWithPrivilege() public static method

public static RunWithPrivilege ( string privilege, bool enabled, PrivilegedHelper helper ) : void
privilege string
enabled bool
helper PrivilegedHelper
return void