共用方式為


IFeedItemDataXmlTextRetriever::GetItemDataXmlText

取得採用 FeedSync 格式表示為 XML 字串的項目資料。

HRESULT GetItemDataXmlText(
  DWORD * pdwCcItemText,
  LPWSTR wszItemText);

參數

  • pdwCcItemText
    [in, out] 指定 wszItemText 中的字元數目。如果 wszItemText 太小,就傳回擷取此識別碼所需的字元數目,或傳回寫入的字元數目
  • wszItemText
    [in, out, unique, string, size_is(*pdwCcItemText)] 傳回採用 FeedSync 格式表示為 XML 字串的項目資料。

傳回值

  • S_OK

  • E_POINTER

  • 當 wszItemText 太小時,為 HRESULT_FROM_WIN32(ERROR_MORE_DATA)。在這種情況下,所需的字元數目是在 pdwCcItemText 中傳回。

  • 如果擷取的資料大小大於 INT_MAX,為 SYNC_E_INVALID_OPERATION。

請參閱

參考

IFeedItemDataXmlTextRetriever 介面