ServerConnection 생성자
Initializes a new instance of the ServerConnection class.
네임스페이스: Microsoft.SqlServer.Management.Common
어셈블리: Microsoft.SqlServer.ConnectionInfo.dll의 Microsoft.SqlServer.ConnectionInfo
구문
‘선언
Public Sub New
‘사용 방법
Dim instance As New ServerConnection()
public ServerConnection()
public:
ServerConnection()
new : unit -> ServerConnection
public function ServerConnection()
주의
This constructor is called by derived class constructors to initialize state in this type.
예제
'Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server
'The connection is established when a property is requested.
Console.WriteLine(srv.Information.Version)
'The connection is automatically disconnected when the Server variable goes out of scope.