public static bool IsAdmin()
 {
     if (_elevated is null)
     {
         _elevated = Elevation.IsAdministrator() || Elevation.IsRunningAsRoot();
     }
     return((bool)_elevated);
 }
Beispiel #2
0
 public static bool IsAdmin()
 {
     return(Elevation.IsAdministrator() || Elevation.IsRunningAsRoot());
 }