Update the record for a 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 UpdateJob( Job job ) |
Visual Basic |
---|
Public Function UpdateJob ( _ job As Job _ ) As Job |
Visual C++ |
---|
public: Job^ UpdateJob( Job^ job ) |
Parameters
- job
- Type: Perforce.P4..::..Job
Job specification for the job being updated
Return Value
The Job object if new job was saved, null if creation failed
Examples
To update the description of job 'job000001':
CopyC#

Job job = _repository.GetJob("job000001"); job["Description"] += "\n\Updated description"; _repository.UpdateJob("job000001");