C# Class System.Security.AccessControl.Privilege

Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

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

Private Methods

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

Method Details

Enable() public méthode

public Enable ( ) : void
Résultat void

Privilege() public méthode

public Privilege ( string privilegeName ) : Microsoft.Win32
privilegeName string
Résultat Microsoft.Win32

Revert() public méthode

public Revert ( ) : void
Résultat void

RunWithPrivilege() public static méthode

public static RunWithPrivilege ( string privilege, bool enabled, PrivilegedHelper helper ) : void
privilege string
enabled bool
helper PrivilegedHelper
Résultat void