Bagikan melalui


IXFeed::Xml Method

Returns the XML for the feed.

Syntax

HRESULT Xml(
    UINT uiItemCount,
    FEEDS_XML_SORT_PROPERTY sortProperty,
    FEEDS_XML_SORT_ORDER sortOrder,
    FEEDS_XML_FILTER_FLAGS filterFlags,
    FEEDS_XML_INCLUDE_FLAGS includeFlags,
    IStream **pps
);

Parameters

  • uiItemCount
    [in] Unsigned integer value that specifies the maximum number of items to return.
  • sortProperty
    [in] A FEEDS_XML_SORT_PROPERTY value that defines the sort column.
  • sortOrder
    [in] A FEEDS_XML_SORT_ORDER value that defines the sort direction.
  • filterFlags
    [in] A FEEDS_XML_FILTER_FLAGS value that specifies whether to include items based on read status.
  • includeFlags
    [in] A FEEDS_XML_INCLUDE_FLAGS value that specifies whether to include namespace extensions to Really Simple Syndication (RSS) 2.0 in the XML.
  • pps
    [out] Address of a pointer variable of type IStream that receives the XML source for the feed.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

If you specify FXSP_NONE in sortProperty, you must also specify FXSO_NONE in sortOrder and vice versa. If these values are not used together, this method will return E_INVALIDARG.

See Also

IXFeedItem::Xml