SystemWebCachingSectionGroup.OutputCache 屬性

定義

取得 outputCache 配置中包含的該區段。

public:
 property System::Web::Configuration::OutputCacheSection ^ OutputCache { System::Web::Configuration::OutputCacheSection ^ get(); };
[System.Configuration.ConfigurationProperty("outputCache")]
public System.Web.Configuration.OutputCacheSection OutputCache { get; }
[<System.Configuration.ConfigurationProperty("outputCache")>]
member this.OutputCache : System.Web.Configuration.OutputCacheSection
Public ReadOnly Property OutputCache As OutputCacheSection

屬性值

OutputCacheSection 物件。

屬性

範例

以下程式碼範例說明如何從現有網頁應用程式的設定檔取得該 OutputCacheSection 物件。


// Get the .<outputCache> section
OutputCacheSection outputCache =
    cachingSectionGroup.OutputCache;

// Display one of its properties.
msg = String.Format(
"Enable output cache: {0}\n",
outputCache.EnableOutputCache.ToString());

Console.Write(msg);
' Get the .<outputCache> section
Dim outputCache _
As OutputCacheSection = _
cachingSectionGroup.OutputCache

' Display one of its properties.
msg = String.Format( _
"Enable output cache: {0}" + _
ControlChars.Lf, _
outputCache.EnableOutputCache.ToString())

Console.Write(msg)

備註

物件 OutputCacheSection 指的是設定檔的該 outputCache 區段。

適用於

另請參閱