IBackgroundCopyJob::GetType method

Retrieves the type of transfer being performed, such as a file download or upload.

Syntax

HRESULT GetType(
  [out] BG_JOB_TYPE *pJobType
);

Parameters

pJobType [out]

Type of transfer being performed. For a list of transfer types, see the BG_JOB_TYPE enumeration.

Return value

This method returns the following HRESULT values, as well as others.

Return code Description
S_OK
Transfer type was successfully retrieved.

Remarks

Specify the type of transfer when you create the job.

Requirements

Requirement Value
Minimum supported client
Windows 10, version 1709 [desktop apps only]
Minimum supported server
Windows Server, version 1709 [desktop apps only]
Header
Deliveryoptimization.h
IDL
DeliveryOptimization.idl
Library
Dosvc.lib
DLL
Dosvc.dll
IID
IID_IBackgroundCopyJob is defined as 37668D37-507E-4160-9316-26306D150B12

See also

IBackgroundCopyJob

BG_JOB_TYPE

IBackgroundCopyManager::CreateJob