次の方法で共有


Solution::CreateJob method

Load a job from an XML file.

Syntax

virtual HRESULT CreateJob(
  [in]  LPCWSTR jobPath,
  [out] Job     **newJob
) = 0;

Parameters

jobPath [in]

A string containing the path to an XML file that adheres to the job manifest schema.

newJob [out]

A double pointer to receive a pointer to the newly created Job object.

Return value

If AXE parses and validates the job successfully, this method returns S_OK.

If the XML does not adhere to the job manifest or assessment manifest schema, this method returns AXE_E_BAD_MANIFEST.

If there is insufficient memory available to create a Job object, this method returns E_OUTOFMEMORY.

If the job file does not exist, the method returns the HRESULT version of ERROR_NOT_FOUND (0x80070002).

Remarks

Managed code uses Solution.CreateJob | createJob method.

Requirements

Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Header
AxeHosting.h
DLL
AxeCore.dll

See also

Solution

Solution::CreateJob methods