다음을 통해 공유


SqlCacheDependencyDatabase.Name 속성

정의

데이터베이스의 이름을 가져오거나 설정합니다.

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("name", IsKey=true, IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string Name { get; set; }
[<System.Configuration.ConfigurationProperty("name", IsKey=true, IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Name : string with get, set
Public Property Name As String

속성 값

데이터베이스를 식별하는 데 사용되는 SqlCacheDependencyDatabase 이름을 지정하는 문자열입니다.

특성

예제

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


// Get the current Name property value.
string nameValue = sqlCdd.Name;

// Set the Name for this configuration element.
sqlCdd.Name = "ConfigElementName";
' Get the current Name property value.
Dim nameValue As String = sqlCdd.Name

' Set the Name for this configuration element.
sqlCdd.Name = "ConfigElementName"

설명

Name 속성을 사용하면 구성 파일에서 노드 요소의 add 특성에 name 프로그래밍 방식으로 액세스하고 수정할 databases 수 있습니다.

이 특성은 name 테이블에 사용되는 데이터베이스를 SqlCacheDependency식별합니다.

적용 대상

추가 정보