ProcessElevationRestartCurrentProcessElevated Method |
This function can be called to easily restart your application with administrator privileges.
Namespace:
TreeksLicensingLibrary2
Assembly:
TreeksLicensingLibrary2 (in TreeksLicensingLibrary2.dll) Version: 2.1.8318.42066 (2.1.0.0)
Syntax public static string RestartCurrentProcessElevated(
string Arguments = ""
)
Public Shared Function RestartCurrentProcessElevated (
Optional Arguments As String = ""
) As String
public:
static String^ RestartCurrentProcessElevated(
String^ Arguments = L""
)
static member RestartCurrentProcessElevated :
?Arguments : string
(* Defaults:
let _Arguments = defaultArg Arguments ""
*)
-> string
Parameters
- Arguments (Optional)
- Type: SystemString
Any optional arguments to be passed to your main executable
Return Value
Type:
StringOK on success, otherwise error message
See Also