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)
Usage
Syntax
'Declaration
Members
Member name | Description |
---|---|
Default | Starts the task with the current user privileges. |
RunWithStandardUserPrivileges | Starts the task with standard user privileges. |
UseShellExecute | Use the ShellExecute function to start the task. |
Example
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));
Remarks
This enumeration is used by the ProcessTaskStartInfo object.
For more information about the ShellExecute function, see the Microsoft Web site (https://go.microsoft.com/fwlink/?LinkId=116154).
Platforms
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
See Also
Reference
Microsoft.EssentialBusinessServer.Console.ObjectModel Namespace