Partager via


ProcessTaskStartInfo Constructor (String)

 

Initializes a new instance of the ProcessTaskStartInfo class with the specified file name.

Namespace:   Microsoft.WindowsServerSolutions.Administration.ObjectModel
Assembly:  Microsoft.WindowsServerSolutions.Administration.ObjectModel (in Microsoft.WindowsServerSolutions.Administration.ObjectModel.dll)

Syntax

public ProcessTaskStartInfo(
    string fileName
)
public:
ProcessTaskStartInfo(
    String^ fileName
)
Public Sub New (
    fileName As String
)

Parameters

  • fileName
    Type: System.String

    The path and name of the program that is assigned to the task.

Remarks

For more information about how a ProcessTaskStartInfo object is used, see ProcessTask.

Examples

The following code example shows how to initialize a ProcessTaskStartInfo object with a specified program:

ProcessTaskStartInfo taskInfo = new ProcessTaskStartInfo("notepad.exe");

See Also

ProcessTaskStartInfo Overload
ProcessTaskStartInfo Class
Microsoft.WindowsServerSolutions.Administration.ObjectModel Namespace

Return to top