PartialCachingAttribute.VaryByControls プロパティ
アセンブリ: System.Web (system.web.dll 内)

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

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) */

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からPartialCachingAttribute.VaryByControls プロパティを検索する場合は、下記のリンクをクリックしてください。

- PartialCachingAttribute.VaryByControls プロパティのページへのリンク