Get the record for an existing job from the repository.

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

Syntax

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

Parameters

job
Type: System..::..String
Job name
options
Type: Perforce.P4..::..Options
There are no valid flags to use when fetching an existing job

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", null);

See Also