다음을 통해 공유


OutputCacheProfile.VaryByControl 속성

정의

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

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

속성 값

VaryByControl 값입니다.

특성

예제

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


// Get the current VaryByControl.
String varyByControlValue = 
    outputCacheProfile.VaryByControl;

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

  ' Set the VaryByControl.
  outputCacheProfile.VaryByControl = _
  String.Empty

설명

VaryByControl 캐시할 컨트롤의 세미콜론으로 구분된 ID 집합입니다.

자세한 내용은 여러 버전의 사용자 제어 출력 캐싱을 참조하세요.

메모

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

적용 대상

추가 정보