c# run as administrator

64

how to run a function as administrator in c# -

[PrincipalPermission(SecurityAction.Demand, Role = @"BUILTIN\Administrators")]
public void MyMethod()
{
  
}

c# request run as administrator -

 <requestedExecutionLevel level="requireAdministrator" uiAccess="false" />

Comments

Submit
0 Comments