RepositoryCreateJob Method (Job)
|
Create a new job in the repository.
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.2.269.3570
Syntax public Job CreateJob(
Job job
)
Public Function CreateJob (
job As Job
) As Job
public:
Job^ CreateJob(
Job^ job
)
member CreateJob :
job : Job -> Job
Parameters
- job
- Type: Perforce.P4Job
Job specification for the new job
Return Value
Type:
JobThe 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