다음을 통해 공유


ConnectionContext 속성

Gets the current server connection details for the instance of SQL Server.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo.dll의 Microsoft.SqlServer.Smo

구문

‘선언
Public ReadOnly Property ConnectionContext As ServerConnection
    Get
‘사용 방법
Dim instance As Server
Dim value As ServerConnection

value = instance.ConnectionContext
public ServerConnection ConnectionContext { get; }
public:
virtual property ServerConnection^ ConnectionContext {
    ServerConnection^ get () sealed;
}
abstract ConnectionContext : ServerConnection
override ConnectionContext : ServerConnection
final function get ConnectionContext () : ServerConnection

속성 값

형식: Microsoft.SqlServer.Management.Common. . :: . .ServerConnection
A ServerConnection object that specifies the details of the current connection to the instance of SQL Server.

구현

IAlienRootConnectionContext()()()()

주의

This property can be used to change connection settings, such as the name of the instance of SQL Server or the authentication type. The ConnectionContext property is represented by the ServerConnection class. When connecting to the local instance of SQL Server by using Windows Authentication, the default values are used. You do not have to set any properties.