RepositoryUpdateJob Method
|
Update the record for a job in the repository
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.1.265.5426
Syntax public Job UpdateJob(
Job job
)
Public Function UpdateJob (
job As Job
) As Job
public:
Job^ UpdateJob(
Job^ job
)
member UpdateJob :
job : Job -> Job
Parameters
- job
- Type: Perforce.P4Job
Job specification for the job being updated
Return Value
Type:
JobThe Job object if new job was saved, null if creation failed
Examples
To update the description of job 'job000001':
Job job = _repository.GetJob("job000001");
job["Description"] += "\n\Updated description";
_repository.UpdateJob("job000001");
See Also