StaticPartialCachingControl.BuildCachedControl メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ユーザー コントロール (.ascx ファイル) に StaticPartialCachingControl オブジェクトをビルドし、それを含むサーバー コントロールに追加します。
オーバーロード
| 名前 | 説明 |
|---|---|
| BuildCachedControl(Control, String, String, Int32, String, String, String, BuildMethod) |
ユーザー コントロール (.ascx ファイル) で指定されたパラメーターを使用して StaticPartialCachingControl オブジェクトをビルドし、それを解析されたサブオブジェクトとして含まれるサーバー コントロールに追加します。 |
| BuildCachedControl(Control, String, String, Int32, String, String, String, String, BuildMethod) |
ユーザー コントロール (.ascx ファイル) で指定されたパラメーターを使用して StaticPartialCachingControl オブジェクトをビルドし、それを解析されたサブオブジェクトとして含まれるサーバー コントロールに追加します。 |
| BuildCachedControl(Control, String, String, Int32, String, String, String, String, BuildMethod, String) |
.ascx ファイルで定義されているコントロールに対して、 StaticPartialCachingControl クラスの新しいインスタンスを構築します。 |
BuildCachedControl(Control, String, String, Int32, String, String, String, BuildMethod)
ユーザー コントロール (.ascx ファイル) で指定されたパラメーターを使用して StaticPartialCachingControl オブジェクトをビルドし、それを解析されたサブオブジェクトとして含まれるサーバー コントロールに追加します。
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)
ユーザー コントロール (.ascx ファイル) で指定されたパラメーターを使用して StaticPartialCachingControl オブジェクトをビルドし、それを解析されたサブオブジェクトとして含まれるサーバー コントロールに追加します。
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)
.ascx ファイルで定義されているコントロールに対して、 StaticPartialCachingControl クラスの新しいインスタンスを構築します。
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
出力キャッシュ コントロールの格納に使用されるプロバイダーの名前。