Share via


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

속성 값

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 사용자 지정 출력 캐싱 요구 사항을 나타내는 모든 텍스트일 수 있습니다. 사용자 지정 문자열을 입력 하는 경우 재정의 해야 합니다 GetVaryByCustomString 애플리케이션의 Global.asax 파일에는 메서드.

참고

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

적용 대상

추가 정보