CacheSection 建構函式

定義

初始化 CacheSection 類別的新執行個體。

public:
 CacheSection();
public CacheSection();
Public Sub New ()

範例

System.Web.Configuration.CacheSection cacheSection =
    (System.Web.Configuration.CacheSection)config.GetSection(
        "system.web/caching/cache");
Dim cacheSection As System.Web.Configuration.CacheSection =
    CType(config.GetSection("system.web/caching/cache"), System.Web.Configuration.CacheSection)

備註

CacheSection 構子並非直接從你的程式碼中使用。 它由 ASP.NET 配置系統稱為此。 你可以透過使用該CacheSection方法獲得該GetSection類別的實例。

適用於