Adds the downloaded enclosure file to the Windows RSS Platform.
HRESULT SetFile( BSTR downloadUrl, BSTR downloadFilePath, BSTR downloadMimeType, BSTR enclosureFilename );
- [in] BSTR that specifies a valid absolute (non-relative) URL.
- [in] BSTR that specifies the local system path to the download folder.
- [in] BSTR that specifies the final MIME type of the file.
- [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.
Returns S_OK if successful, or an error value otherwise.
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.