LaunchBehavior Enumeration
Indicates how a process-based task is started.
Namespace: Microsoft.EssentialBusinessServer.Console.ObjectModel
Assembly: Microsoft.EssentialBusinessServer.Console.ObjectModel (in microsoft.essentialbusinessserver.console.objectmodel.dll)
Assembly: Microsoft.EssentialBusinessServer.Console.ObjectModel (in microsoft.essentialbusinessserver.console.objectmodel.dll)
The following code example shows how to use the LaunchBehavior enumeration to run a program with standard user privileges:
TaskCollection tasks = new TaskCollection();
ProcessTaskStartInfo notepadTask = null;
notepadTask = new ProcessTaskStartInfo("notepad.exe");
notepadTask.LaunchBehavior =
LaunchBehavior.RunWithStandardUserPrivileges;
tasks.Add(new ProcessTask("Launch Notepad", notepadTask));
This enumeration is used by the ProcessTaskStartInfo object.
For more information about the ShellExecute function, see the Microsoft Web site (http://go.microsoft.com/fwlink/?LinkId=116154).
Community Additions
Show: