SqlConnectionInfo.ConnectionString 属性

获取与 SQL Server 实例建立连接时使用的连接字符串。

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

语法

声明
<BrowsableAttribute(False)> _
Public Overrides ReadOnly Property ConnectionString As String 
    Get
用法
Dim instance As SqlConnectionInfo 
Dim value As String 

value = instance.ConnectionString
[BrowsableAttribute(false)]
public override string ConnectionString { get; }
[BrowsableAttribute(false)]
public:
virtual property String^ ConnectionString {
    String^ get () override;
}
[<BrowsableAttribute(false)>]
abstract ConnectionString : string
[<BrowsableAttribute(false)>]
override ConnectionString : string
override function get ConnectionString () : String

属性值

类型:String
一个 String 值,该值指定用于建立与 SQL Server 实例的连接的连接字符串。

请参阅

参考

SqlConnectionInfo 类

Microsoft.SqlServer.Management.Common 命名空间