IFeedEnclosure::SetFile Method

Adds the downloaded enclosure file to the Windows RSS Platform.

Syntax


HRESULT SetFile(
    BSTR downloadUrl,
    BSTR downloadFilePath,
    BSTR downloadMimeType,
    BSTR enclosureFilename
);

Parameters

downloadUrl
[in] BSTR that specifies a valid absolute (non-relative) URL.
downloadFilePath
[in] BSTR that specifies the local system path to the download folder.
downloadMimeType
[in] BSTR that specifies the final MIME type of the file.
enclosureFilename
[in] BSTR that specifies the file name of the enclosure. The file specified in enclosureFilename is moved from the location specified in downloadFilePath to the location defined by IFeed::LocalEnclosurePath.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The IFeedEnclosure::SetFile method is designed to enable applications that perform their own downloads to share data with other applications that use the Windows RSS Platform. Setting the enclosure URL with this method does not cause the Windows RSS Platform to perform the download. Calling this method will cancel pending downloads and delete the previous enclosure file, if one exists.

Note  IFeedEnclosure::AsyncDownload will always download the original enclosure even if an alternate file has been set.

See Also

IFeedEnclosure::RemoveFile
Show: