ITask::SetParametersITask::SetParameters*
*



Contents  *



Index  *Topic Contents
*Previous Topic: ITask::SetMaxRunTime
*Next Topic: ITask::SetPriority

ITask::SetParameters

HRESULT SetParameters(
    LPCWSTR pwszParameters
);

Sets the command-line parameters for the task.

pwszParameters
LPCWSTR that contains task parameters. These parameters are passed as command-line arguments to the application the task will run.

If the Application Name method contains a document to run by association, the Parameters methods are ignored. To clear the command-line parameter property, set pwszParameters to L"".

The application name and parameters properties are accessed through the Application Name Set and Get methods on the ITask interface. They are properties of a task object.

See also ITask::GetParameters

Back to top


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.