共用方式為


Server.ISfcHasConnection.ConnectionContext 屬性

Gets the context for the connection represented by the current Server object.

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

語法

'宣告
Private ReadOnly Property ConnectionContext As SfcConnectionContext 
    Implements ISfcHasConnection.ConnectionContext 
    Get
'用途
Dim instance As Server 
Dim value As SfcConnectionContext 

value = CType(instance, ISfcHasConnection).ConnectionContext
SfcConnectionContext ISfcHasConnection.ConnectionContext { get; }
private:
virtual property SfcConnectionContext^ ConnectionContext {
    SfcConnectionContext^ get () sealed = ISfcHasConnection::ConnectionContext::get;
}
private abstract ConnectionContext : SfcConnectionContext 
private override ConnectionContext : SfcConnectionContext
JScript 支援明確介面實作的使用,但不支援新介面實作的宣告。

屬性值

型別:Microsoft.SqlServer.Management.Sdk.Sfc.SfcConnectionContext
A String value that specifies the context for the connection represented by the current Server object.

實作

ISfcHasConnection.ConnectionContext

請參閱

參考

Server 類別

Microsoft.SqlServer.Management.Smo 命名空間