다음을 통해 공유


OutputCacheProfile.SqlDependency 속성

정의

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

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

속성 값

SqlDependency 값입니다.

특성

예제

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


// Get the current SqlDependency.
String sqlDependencyValue = 
    outputCacheProfile.SqlDependency;

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

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

설명

SqlDependency 애플리케이션과 SQL Server 인스턴스 간의 관계를 정의하여 서버의 데이터 변경 내용을 검색할 수 있도록 합니다. SqlDependency 그러면 캐시된 출력 페이지가 변경되는 SQL 테이블이 변경될 때마다 캐시에서 출력 페이지가 제거됩니다.

메모

클래스는 SqlCacheDependency 테이블을 모니터링하여 테이블이 변경되면 항목이 캐시에서 자동으로 제거되도록 합니다. 이 클래스는 상속할 수 없습니다.

적용 대상

추가 정보