다음을 통해 공유


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

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

설명

하는 경우 Location 로 설정 된 Any를 출력 캐시 요청이 시작 된 브라우저 클라이언트에 프록시 서버를 요청에 참여 하 고, 다른 서버에 있거나 요청이 처리 된 서버에 있을 수 있습니다.

적용 대상

추가 정보