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)

Member nameDescription
DefaultStarts the task with the current user privileges.
RunWithStandardUserPrivilegesStarts the task with standard user privileges.
UseShellExecuteUse the ShellExecute function to start the task.

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).


Development Platforms

Windows Server 2008 64-bit Edition, Windows Vista 64-bit Edition, Windows Essential Business Server 2008 Standard, Windows Essential Business Server 2008 Premium

Target Platforms

Windows Essential Business Server 2008 Standard, Windows Essential Business Server 2008 Premium

Community Additions

Show: