PartialCachingAttribute.VaryByControls プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > PartialCachingAttribute.VaryByControls プロパティの意味・解説 

PartialCachingAttribute.VaryByControls プロパティ

出力キャッシュユーザー コントロール変更するために使用するユーザー コントロール プロパティリスト取得します

名前空間: System.Web.UI
アセンブリ: System.Web (system.web.dll 内)
構文構文

Dim instance As PartialCachingAttribute
Dim value As String

value = instance.VaryByControls
public string VaryByControls { get;
 }
public:
property String^ VaryByControls {
    String^ get ();
}
/** @property */
public String get_VaryByControls ()
public function get VaryByControls
 () : String

プロパティ
ユーザー コントロール プロパティリスト

使用例使用例

PartialCachingAttribute(Int32,String,String,String) コンストラクタユーザー コントロール適用する方法次のコード例示します。この例では、このコンストラクタ使用してユーザー コントロールキャッシュできること示しキャッシュ存続期間20 秒に指定してユーザー コントロール出力変化対象となる state という名前のコントロール指定してます。

' Set the PartialCachingAttribute.Duration property to
' 20 seconds and the PartialCachingAttribute.VaryByControls
' property to the ID of the server control to vary the output by.
' In this case, it is state, the ID assigned to a DropDownList
' server control.
<PartialCaching(20, Nothing, "state",
 Nothing)> _
Public Class ctlSelect
    Inherits UserControl
// Set the PartialCachingAttribute.Duration property to
// 20 seconds and the PartialCachingAttribute.VaryByControls
// property to the ID of the server control to vary the output by.
// In this case, it is state, the ID assigned to a DropDownList
// server control.
[PartialCaching(20, null, "state", null)]
// Set the PartialCachingAttribute.Duration property to
// 20 seconds and the PartialCachingAttribute.VaryByControls
// property to the ID of the server control to vary the output by.
// In this case, it is state, the ID assigned to a DropDownList
// server control.
/** @attribute PartialCaching(20, null, "state", null)
 */
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
PartialCachingAttribute クラス
PartialCachingAttribute メンバ
System.Web.UI 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からPartialCachingAttribute.VaryByControls プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からPartialCachingAttribute.VaryByControls プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からPartialCachingAttribute.VaryByControls プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「PartialCachingAttribute.VaryByControls プロパティ」の関連用語

PartialCachingAttribute.VaryByControls プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



PartialCachingAttribute.VaryByControls プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS