다음을 통해 공유


OutputCacheProfile.VaryByCustom 속성

정의

속성을 가져오거나 설정합니다 VaryByCustom .

public:
 property System::String ^ VaryByCustom { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("varyByCustom")]
public string VaryByCustom { get; set; }
[<System.Configuration.ConfigurationProperty("varyByCustom")>]
member this.VaryByCustom : string with get, set
Public Property VaryByCustom As String

속성 값

VaryByCustom 값입니다.

특성

예제

다음 코드 예제에서는 속성을 사용 하는 방법을 보여 있습니다 VaryByCustom .


// Get the current VaryByCustom.
String varyByCustomValue = 
    outputCacheProfile.VaryByCustom;

// Set the VaryByCustom.
outputCacheProfile.VaryByCustom = 
    string.Empty;
  ' Get the current VaryByCustom.
  Dim varyByCustomValue As String = _
  outputCacheProfile.VaryByCustom

  ' Set the VaryByCustom property.
  outputCacheProfile.VaryByCustom = _
  String.Empty

설명

사용자 VaryByCustom 지정 출력 캐싱 요구 사항을 나타내는 텍스트일 수 있습니다. 사용자 지정 문자열을 입력한 경우 애플리케이션의 Global.asax 파일에서 메서드를 재정 GetVaryByCustomString 의해야 합니다.

메모

설정은 VaryByCustom 지시문의 특성에 VaryByCustom 사용되는 설정과 @ OutputCache 동일합니다.

적용 대상

추가 정보