ConnectionString 属性

Gets or sets the connection string that is used to connect to the instance of SQL Server.

命名空间:  Microsoft.SqlServer.Management.RegisteredServers
程序集:  Microsoft.SqlServer.Management.RegisteredServers(在 Microsoft.SqlServer.Management.RegisteredServers.dll 中)

语法

声明
<SfcIgnoreAttribute> _
Public Property ConnectionString As String
    Get
    Set
用法
Dim instance As RegisteredServer
Dim value As String

value = instance.ConnectionString

instance.ConnectionString = value
[SfcIgnoreAttribute]
public string ConnectionString { get; set; }
[SfcIgnoreAttribute]
public:
property String^ ConnectionString {
    String^ get ();
    void set (String^ value);
}
[<SfcIgnoreAttribute>]
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.

注释

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。