共用方式為


IFeedSharingInformation::GetExpires

取得 FeedSync 共用資訊的 expires 值。

HRESULT GetExpires(
  DWORD * pdwCcExpires,
  LPWSTR wszExpires);

參數

  • pdwCcExpires
    [in, out] 指定 wszExpires 中的字元數目。如果 wszExpires 太小,就傳回擷取這項值所需的字元數目,或傳回寫入的字元數目。
  • wszExpires
    [in, out, string, size_is(*pdwCcSince)] 傳回 FeedSync 共用資訊的 expires 值。

傳回值

  • S_OK

  • 如果項目記錄未包含 expires 值,則為 S_FALSE。

  • E_POINTER

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

備註

Sync Services for FeedSync 不會以任何方式解譯或驗證這個值。

expires 值代表摘要發行者 (Publisher) 所建議的到期日和時間。若要避免遺失項目更新,訂閱者必須在摘要過期之前讀取摘要。

請參閱

參考

IFeedSharingInformation 介面