Click or drag to resize

RepositoryCreateJob Method (Job)

Create a new job in the repository.

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.258.5793
Syntax
public Job CreateJob(
	Job job
)

Parameters

job
Type: Perforce.P4Job
Job specification for the new job

Return Value

Type: Job
The Job object if new job was created, null if creation failed
Examples
To create a new job name of the form jobNNNNNN:
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 );
See Also