RepositoryGetJob Method (String, Options)
|
Get the record for an existing job from the repository.
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.2.269.3570
Syntax public Job GetJob(
string job,
Options options
)
Public Function GetJob (
job As String,
options As Options
) As Job
public:
Job^ GetJob(
String^ job,
Options^ options
)
member GetJob :
job : string *
options : Options -> Job
Parameters
- job
- Type: SystemString
Job name - options
- Type: Perforce.P4Options
There are no valid flags to use when fetching an existing job
Return Value
Type:
JobThe Job object if new job was found, null if the requested job does not exist
Examples
Get the record for job 'job000001':
Job job = _repository.GetJob("job000001", null);
See Also