ADSSession class

GetJobForTag method

   

The GetJobForTag method returns the job with the specified application-defined tag.

Syntax

 

C++

hr=session->GetJobForTag(BSTR tag,IADSJob **job)

VB

set job=session.GetJobForTag(BSTR tag)

Parameters and Return Value

 

tag

The tag of the job to retrieve.

job

The job with the specified description.

Error Codes

The following error codes are commonly encountered with this method. See the Error Codes topic for additional error-handling information.

 

ADS_E_NOT_FOUND

No job matches the specified tag.