共用方式為


ConnectionManager.SqlConnectionObject 屬性

Gets the connection object.

命名空間:  Microsoft.SqlServer.Management.Common
組件:  Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)

語法

'宣告
Public ReadOnly Property SqlConnectionObject As SqlConnection 
    Get
'用途
Dim instance As ConnectionManager 
Dim value As SqlConnection 

value = instance.SqlConnectionObject
public SqlConnection SqlConnectionObject { get; }
public:
property SqlConnection^ SqlConnectionObject {
    SqlConnection^ get ();
}
member SqlConnectionObject : SqlConnection
function get SqlConnectionObject () : SqlConnection

屬性值

型別:System.Data.SqlClient.SqlConnection
A SqlConnection object value that specifies the connection.

請參閱

參考

ConnectionManager 類別

Microsoft.SqlServer.Management.Common 命名空間