IDODownload::SetProperty method

Sets a download property. The method accepts a pointer to a VARIANT that contains a specific property to apply to the download.

Syntax

HRESULT SetProperty(
  DODownloadProperty propId,
  VARIANT* propVal
);

Parameters

propId

The required property ID to set (of type DODownloadProperty).

propVal

The property value to set, stored in a VARIANT.

Return Value

If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Return value Description
DO_E_UNKNOWN_PROPERTY_ID propId is unknown.
DO_E_INVALID_STATE The download is not currently in a state that allows setting properties.

Requirements

   
Minimum supported client Windows 10, version 1809 [Win32 applications only]
Minimum supported server Windows Server, version 1809 [Win32 applications only]
Header Do.h