Create a new job in the repository.
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
Syntax
C# |
---|
public Job CreateJob( Job job ) |
Visual Basic |
---|
Public Function CreateJob ( _ job As Job _ ) As Job |
Visual C++ |
---|
public: Job^ CreateJob( Job^ job ) |
Parameters
- job
- Type: Perforce.P4..::..Job
Job specification for the new job
Return Value
The Job object if new job was created, null if creation failed
Examples
To create a new job name of the form jobNNNNNN:
CopyC#

Job job = new Job(); job.Id = new; job.Add("Status", "open"); job.Add("User", "admin"); job.Add("Description", "this is a test job"); Job job = _repository.CreateJob( job );