共用方式為


IAlienRoot.ConnectionContext 屬性

Gets the current server connection details for the instance of SQL Server. 不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。

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

語法

'宣告
ReadOnly Property ConnectionContext As ServerConnection 
    Get
'用途
Dim instance As IAlienRoot 
Dim value As ServerConnection 

value = instance.ConnectionContext
ServerConnection ConnectionContext { get; }
property ServerConnection^ ConnectionContext {
    ServerConnection^ get ();
}
abstract ConnectionContext : ServerConnection
function get ConnectionContext () : ServerConnection

屬性值

型別:Microsoft.SqlServer.Management.Common.ServerConnection
A ServerConnection object that contains the server connection details.

請參閱

參考

IAlienRoot 介面

Microsoft.SqlServer.Management.Sdk.Sfc 命名空間