IBackgroundCopyJobHttpOptions2::GetHttpMethod method (bits10_2.h)
Retrieves a wide string containing the HTTP method name for the BITS transfer. By default, download jobs will be "GET", and upload and upload-reply jobs will be "BITS_POST".
Syntax
HRESULT GetHttpMethod(
[out] LPWSTR *method
);
Parameters
[out] method
Type: LPWSTR*
The address of a pointer to a null-terminated string of wide characters. If successful, the method updates the pointer to point to a string containing the HTTP method name. When you're done with this string, free it with a call to CoTaskMemFree.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10, version 1809 [desktop apps only] |
Minimum supported server | Windows Server 2016 [desktop apps only] |
Target Platform | Windows |
Header | bits10_2.h (include Bits.h) |
Library | Bits.lib |