Поделиться через


Свойство 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"