how to run a function as administrator in c#

85

how to run a function as administrator in c# -

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

Comments

Submit
0 Comments