Get the record for an existing job from the repository.

Namespace: Perforce.P4
Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)

Syntax

C#
public Job GetJob(
	string job
)
Visual Basic
Public Function GetJob ( _
	job As String _
) As Job
Visual C++
public:
Job^ GetJob(
	String^ job
)

Parameters

job
Type: System..::..String
Job name

Return Value

The Job object if new job was found, null if the requested job does not exist

Examples

Get the record for job 'job000001':
CopyC#
Job job = _repository.GetJob("job000001");

See Also