SqlCacheDependencyDatabase.ConnectionStringName 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
데이터베이스의 연결 이름을 가져오거나 설정합니다.
public:
property System::String ^ ConnectionStringName { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("connectionStringName", IsRequired=true)]
[System.Configuration.StringValidator(MinLength=1)]
public string ConnectionStringName { get; set; }
[<System.Configuration.ConfigurationProperty("connectionStringName", IsRequired=true)>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.ConnectionStringName : string with get, set
Public Property ConnectionStringName As String
속성 값
구성 섹션 내에서 데이터베이스 연결 문자열의 이름을 지정하는 connectionStrings 문자열입니다.
- 특성
예제
다음 코드 예제에서는 속성을 사용 하는 방법을 보여 있습니다 ConnectionStringName .
// Get the current ConnectionStringName property value.
string connectionNameValue = sqlCdd.ConnectionStringName;
// Set the ConnectionName property. This is the database name.
sqlCdd.ConnectionStringName = "DataBaseName";
' Get the current ConnectionStringName property value.
Dim connectionNameValue As String = sqlCdd.ConnectionStringName
' Set the ConnectionName property. This is the database name.
sqlCdd.ConnectionStringName = "DataBaseName"
설명
이 ConnectionStringName 속성을 사용하면 구성 파일에서 노드 요소의 add 특성에 connectionName 프로그래밍 방식으로 액세스하고 수정할 databases 수 있습니다. 연결 이름은 데이터베이스 연결 문자열을 connectionStrings 포함하는 섹션의 요소를 식별합니다.