ProcessTaskStartInfo Constructor (String, String)
Initializes a new instance of the ProcessTaskStartInfo class with the specified file name and the specified command-line arguments.
Namespace: Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly: Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)
Syntax
public ProcessTaskStartInfo(
string fileName,
string arguments
)
public:
ProcessTaskStartInfo(
String^ fileName,
String^ arguments
)
Public Sub New (
fileName As String,
arguments As String
)
Parameters
fileName
Type: System.StringThe path and name of the program that is assigned to the task.
arguments
Type: System.StringThe command-line arguments for the program.
Examples
The following code example shows how to initialize a ProcessTaskStartInfo object with a specified program and the specified argument for the program:
ProcessTaskStartInfo taskInfo = null;
taskInfo = new ProcessTaskStartInfo("notepad.exe", "newfile.txt");
See Also
ProcessTaskStartInfo Overload
ProcessTaskStartInfo Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace
Return to top