ScheduledJobDefinition.StartJob Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
StartJob() |
Starts the scheduled job immediately. A ScheduledJob object is returned that represents the running command, and this returned job is also added to the local job repository. Job results are not written to the job store. |
StartJob(String) |
Starts a scheduled job based on definition name and returns the running job object. Returned job is also added to the local job repository. Job results are not written to store. |
StartJob()
Starts the scheduled job immediately. A ScheduledJob object is returned that represents the running command, and this returned job is also added to the local job repository. Job results are not written to the job store.
public Microsoft.PowerShell.ScheduledJob.ScheduledJob StartJob ();
member this.StartJob : unit -> Microsoft.PowerShell.ScheduledJob.ScheduledJob
Public Function StartJob () As ScheduledJob
Returns
ScheduledJob object for running job
Applies to
StartJob(String)
Starts a scheduled job based on definition name and returns the running job object. Returned job is also added to the local job repository. Job results are not written to store.
public static System.Management.Automation.Job2 StartJob (string DefinitionName);
static member StartJob : string -> System.Management.Automation.Job2
Public Shared Function StartJob (DefinitionName As String) As Job2
Parameters
- DefinitionName
- String
ScheduledJobDefinition name.