다음을 통해 공유


ConnectionSettings.ConnectionString 속성

Gets or sets the connection string used to establish a connection with a specified data source.

네임스페이스:  Microsoft.SqlServer.Management.Common
어셈블리:  Microsoft.SqlServer.ConnectionInfo(Microsoft.SqlServer.ConnectionInfo.dll)

구문

‘선언
<BrowsableAttribute(False)> _
Public Property ConnectionString As String 
    Get 
    Set
‘사용 방법
Dim instance As ConnectionSettings 
Dim value As String 

value = instance.ConnectionString

instance.ConnectionString = value
[BrowsableAttribute(false)]
public string ConnectionString { get; set; }
[BrowsableAttribute(false)]
public:
property String^ ConnectionString {
    String^ get ();
    void set (String^ value);
}
[<BrowsableAttribute(false)>]
member ConnectionString : string with get, set
function get ConnectionString () : String 
function set ConnectionString (value : String)

속성 값

유형: System.String
A String value that specifies the connection string used to establish a connection.

주의

The ConnectionString property is a string that contains elements required for the connection.

"id=" & vid & ";password=" & vpass & ";data source=mySQLServer;Connect Timeout=30"

참고 항목

참조

ConnectionSettings 클래스

Microsoft.SqlServer.Management.Common 네임스페이스