IXFeedFolder::CreateFeed Method

Creates a new Really Simple Syndication (RSS) feed and subscribes to it.

Syntax

HRESULT CreateFeed(
    LPCWSTR pszName,
    LPCWSTR pszUrl,
    REFIID riid,
    void **ppv
);

Parameters

  • pszName
    [in] String that specifies the name of the feed to be created.
  • pszUrl
    [in] String that specifies the source URL of the feed.
  • riid
    [in] IID of the requested interface.
  • ppv
    [out] Address of a pointer variable that receives the new feed.

Return Value

Returns S_OK if successful, or E_NOINTERFACE if the interface is not supported.

Remarks

The feed is created in the subscription store, and the Parent object of the new feed is set to the current folder.

All characters in the current code page, including Unicode characters, may be used in the feed name except control characters in the range of 0 (zero) through 31. If invalid characters are used, IFeedFolder::CreateFeed will fail with an HRESULT derived from the Microsoft Win32 error ERROR_ILLEGAL_CHARACTER. For more information, see Valid Feed and Folder Names.

The pszUrl parameter must be an absolute URL that begins with the "http:" or "https:" protocol. No other protocols are supported.