IDODownload::SetProperty method (deliveryoptimization.h)
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,
const 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
Requirement | Value |
---|---|
Minimum supported client | Windows 11 Build 22621 |
Header | deliveryoptimization.h |