StaticPartialCachingControl.BuildCachedControl 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在使用者控制項中建立 StaticPartialCachingControl 一個物件(.ascx 檔案),並將其加入包含的伺服器控制項。
多載
| 名稱 | Description |
|---|---|
| BuildCachedControl(Control, String, String, Int32, String, String, String, BuildMethod) |
建立 StaticPartialCachingControl 一個包含使用者控制項(.ascx 檔案)參數的物件,並將其作為解析後的子物件加入包含的伺服器控制項。 |
| BuildCachedControl(Control, String, String, Int32, String, String, String, String, BuildMethod) |
建立 StaticPartialCachingControl 一個包含使用者控制項(.ascx 檔案)參數的物件,並將其作為解析後的子物件加入包含的伺服器控制項。 |
| BuildCachedControl(Control, String, String, Int32, String, String, String, String, BuildMethod, String) |
建立該類別的新實例 StaticPartialCachingControl ,針對定義在 .ascx 檔案中的控制項。 |
BuildCachedControl(Control, String, String, Int32, String, String, String, BuildMethod)
建立 StaticPartialCachingControl 一個包含使用者控制項(.ascx 檔案)參數的物件,並將其作為解析後的子物件加入包含的伺服器控制項。
public:
static void BuildCachedControl(System::Web::UI::Control ^ parent, System::String ^ ctrlID, System::String ^ guid, int duration, System::String ^ varyByParams, System::String ^ varyByControls, System::String ^ varyByCustom, System::Web::UI::BuildMethod ^ buildMethod);
public static void BuildCachedControl(System.Web.UI.Control parent, string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, System.Web.UI.BuildMethod buildMethod);
static member BuildCachedControl : System.Web.UI.Control * string * string * int * string * string * string * System.Web.UI.BuildMethod -> unit
Public Shared Sub BuildCachedControl (parent As Control, ctrlID As String, guid As String, duration As Integer, varyByParams As String, varyByControls As String, varyByCustom As String, buildMethod As BuildMethod)
參數
- parent
- Control
伺服器控制來控制該 StaticPartialCachingControl 實例。
- ctrlID
- String
由 ASP.NET 指派給控制的識別碼。
- guid
- String
快取控制的全域唯一識別碼。
- duration
- Int32
控制項輸出被快取的時間長度。
- varyByParams
- String
查詢字串或 POST 參數的字串,用來改變快取中的伺服器控制。
- varyByControls
- String
一個字串,列出伺服器控制屬性,用以調整快取中使用者控制。
- varyByCustom
- String
一個由使用者定義的字串,包含自訂的輸出快取參數值。
- buildMethod
- BuildMethod
一個代表呼叫方法來建立控制。
備註
BuildCachedControl 方法建立一個與 Microsoft SQL Server 資料庫 資料表無關聯的快取控制項。
BuildCachedControl 方法設計給 ASP.NET 頁面框架使用,開發者不應直接呼叫。
另請參閱
適用於
BuildCachedControl(Control, String, String, Int32, String, String, String, String, BuildMethod)
建立 StaticPartialCachingControl 一個包含使用者控制項(.ascx 檔案)參數的物件,並將其作為解析後的子物件加入包含的伺服器控制項。
public:
static void BuildCachedControl(System::Web::UI::Control ^ parent, System::String ^ ctrlID, System::String ^ guid, int duration, System::String ^ varyByParams, System::String ^ varyByControls, System::String ^ varyByCustom, System::String ^ sqlDependency, System::Web::UI::BuildMethod ^ buildMethod);
public static void BuildCachedControl(System.Web.UI.Control parent, string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, string sqlDependency, System.Web.UI.BuildMethod buildMethod);
static member BuildCachedControl : System.Web.UI.Control * string * string * int * string * string * string * string * System.Web.UI.BuildMethod -> unit
Public Shared Sub BuildCachedControl (parent As Control, ctrlID As String, guid As String, duration As Integer, varyByParams As String, varyByControls As String, varyByCustom As String, sqlDependency As String, buildMethod As BuildMethod)
參數
- parent
- Control
伺服器控制來控制該 StaticPartialCachingControl 實例。
- ctrlID
- String
由 ASP.NET 指派給控制的識別碼。
- guid
- String
快取控制的全域唯一識別碼。
- duration
- Int32
控制項輸出被快取的時間長度。
- varyByParams
- String
查詢字串或 POST 參數的字串,用來改變快取中的伺服器控制。
- varyByControls
- String
一個字串,列出伺服器控制屬性,用以調整快取中使用者控制。
- varyByCustom
- String
一個由使用者定義的字串,包含自訂的輸出快取參數值。
- sqlDependency
- String
一個分號分隔字串,用來指定 Microsoft SQL Server 快取相依時應使用的資料庫與資料表。
- buildMethod
- BuildMethod
一個代表呼叫方法來建立控制。
備註
BuildCachedControl 方法建立一個快取控制項,並與由 sqlDependency 參數指定的SQL Server資料庫資料表建立關係。
StaticPartialCachingControl 方法設計給 ASP.NET 頁面框架使用,開發者不應直接呼叫。
另請參閱
適用於
BuildCachedControl(Control, String, String, Int32, String, String, String, String, BuildMethod, String)
建立該類別的新實例 StaticPartialCachingControl ,針對定義在 .ascx 檔案中的控制項。
public:
static void BuildCachedControl(System::Web::UI::Control ^ parent, System::String ^ ctrlID, System::String ^ guid, int duration, System::String ^ varyByParams, System::String ^ varyByControls, System::String ^ varyByCustom, System::String ^ sqlDependency, System::Web::UI::BuildMethod ^ buildMethod, System::String ^ providerName);
public static void BuildCachedControl(System.Web.UI.Control parent, string ctrlID, string guid, int duration, string varyByParams, string varyByControls, string varyByCustom, string sqlDependency, System.Web.UI.BuildMethod buildMethod, string providerName);
static member BuildCachedControl : System.Web.UI.Control * string * string * int * string * string * string * string * System.Web.UI.BuildMethod * string -> unit
Public Shared Sub BuildCachedControl (parent As Control, ctrlID As String, guid As String, duration As Integer, varyByParams As String, varyByControls As String, varyByCustom As String, sqlDependency As String, buildMethod As BuildMethod, providerName As String)
參數
- parent
- Control
伺服器控制項,作為實例容器 StaticPartialCachingControl 所用。
- ctrlID
- String
由 ASP.NET 指派給控制項的 ID。
- guid
- String
快取控制項的全域唯一識別碼(GUID)。
- duration
- Int32
控制項輸出被快取的時間長度。
- varyByParams
- String
查詢字串或 POST 參數的字串,用以調整快取中的使用者控制。
- varyByControls
- String
一個字串,列出伺服器控制屬性,用以調整快取中使用者控制。
- varyByCustom
- String
一個由使用者定義的字串,包含自訂的輸出快取參數值。
- sqlDependency
- String
一個分號分隔字串,用來指定 Microsoft SQL Server 快取相依時應使用的資料庫與資料表。
- buildMethod
- BuildMethod
一個代表會呼叫建立控制的方法。
- providerName
- String
用於儲存輸出快取控制的提供者名稱。