注意:這個屬性是 .NET Framework 2.0 版的新功能。
取得或設定快取項目保留在輸出快取中的時間。
命名空間: System.Web.UI
組件: System.Web (在 system.web.dll 中)
Public Property Duration As Integer
Dim instance As OutputCacheParameters
Dim value As Integer
value = instance.Duration
instance.Duration = value
public int Duration { get; set; }
public:
property int Duration {
int get ();
void set (int value);
}
/** @property */
public int get_Duration ()
/** @property */
public void set_Duration (int value)
public function get Duration () : int
public function set Duration (value : int)
屬性值
快取項目保留在輸出快取中的秒數。預設值為 0,表示沒有期限。
Windows 98、 Windows 2000 SP4、 Windows Server 2003、 Windows XP Media Center Edition、 Windows XP Professional x64 Edition、 Windows XP SP2、 Windows XP Starter Edition
.NET Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱系統需求一節的內容。
.NET Framework
支援版本:2.0