Share via


OutputCacheProfile.Location プロパティ

定義

出力キャッシュ場所を取得または設定します。

public:
 property System::Web::UI::OutputCacheLocation Location { System::Web::UI::OutputCacheLocation get(); void set(System::Web::UI::OutputCacheLocation value); };
[System.Configuration.ConfigurationProperty("location")]
public System.Web.UI.OutputCacheLocation Location { get; set; }
[<System.Configuration.ConfigurationProperty("location")>]
member this.Location : System.Web.UI.OutputCacheLocation with get, set
Public Property Location As OutputCacheLocation

プロパティ値

OutputCacheLocation 列挙値のいずれか。 既定値は、Any です。

属性

次のコード例は、Location プロパティの使用方法を示しています。


// Get the current Location.
System.Web.UI.OutputCacheLocation locationValue = 
    outputCacheProfile.Location;

// Set the Location property to null.
outputCacheProfile.Location = 
    System.Web.UI.OutputCacheLocation.Server;
  ' Get the current Location.
  Dim locationValue _
  As System.Web.UI.OutputCacheLocation = _
  outputCacheProfile.Location

' Set the Location property to null.
  outputCacheProfile.Location = _
  System.Web.UI.OutputCacheLocation.Server

注釈

が にAny設定されている場合Location、出力キャッシュは、要求が発生したブラウザー クライアント、プロキシ サーバー、または要求に参加している他のサーバー、または要求が処理されたサーバー上に配置できます。

適用対象

こちらもご覧ください