IBitsPeerCacheAdministration::GetMaximumContentAge 方法 (bits3_0.h)

取得檔案從快取中移除時的存留期。

語法

HRESULT GetMaximumContentAge(
  [out] ULONG *pSeconds
);

參數

[out] pSeconds

年齡,以秒為單位。 如果上次存取檔案的時間超過此年齡,BITS 會從快取中移除檔案。

傳回值

方法會傳回下列傳回值。

傳回碼 描述
S_OK
Success

規格需求

需求
最低支援的用戶端 Windows Vista
最低支援的伺服器 Windows Server 2008
目標平台 Windows
標頭 bits3_0.h (包含 Bits.h)
程式庫 Bits.lib

另請參閱

IBitsPeerCacheAdministration

IBitsPeerCacheAdministration::SetMaximumContentAge