IServerInformationService.GetServerInformation 方法

定義

擷取支援所提供連線資訊的 IServerInformation 物件。

多載

名稱 Description
GetServerInformation(ConnectionInfoBase)

取得包含指定連線資訊的 IServerInformation 物件。

GetServerInformation(IEnumerable<ConnectionInfoBase>)

擷取支援所提供連線資訊的 ServerInformation IEnumerable 物件。

GetServerInformation(ConnectionInfoBase)

取得包含指定連線資訊的 IServerInformation 物件。

public:
 Microsoft::SqlServer::Management::ServerInformation::IServerConnectionInformation ^ GetServerInformation(Microsoft::SqlServer::Management::Common::ConnectionInfoBase ^ connectionInfo);
public Microsoft.SqlServer.Management.ServerInformation.IServerConnectionInformation GetServerInformation(Microsoft.SqlServer.Management.Common.ConnectionInfoBase connectionInfo);
abstract member GetServerInformation : Microsoft.SqlServer.Management.Common.ConnectionInfoBase -> Microsoft.SqlServer.Management.ServerInformation.IServerConnectionInformation
Public Function GetServerInformation (connectionInfo As ConnectionInfoBase) As IServerConnectionInformation

參數

connectionInfo
ConnectionInfoBase

一個用來指定連接資訊的介面。

傳回

一個支援所提供連線資訊的 IServerInformation 物件。

適用於

GetServerInformation(IEnumerable<ConnectionInfoBase>)

擷取支援所提供連線資訊的 ServerInformation IEnumerable 物件。

public:
 Microsoft::SqlServer::Management::ServerInformation::IServerConnectionInformation ^ GetServerInformation(System::Collections::Generic::IEnumerable<Microsoft::SqlServer::Management::Common::ConnectionInfoBase ^> ^ connectionInfos);
public Microsoft.SqlServer.Management.ServerInformation.IServerConnectionInformation GetServerInformation(System.Collections.Generic.IEnumerable<Microsoft.SqlServer.Management.Common.ConnectionInfoBase> connectionInfos);
abstract member GetServerInformation : seq<Microsoft.SqlServer.Management.Common.ConnectionInfoBase> -> Microsoft.SqlServer.Management.ServerInformation.IServerConnectionInformation
Public Function GetServerInformation (connectionInfos As IEnumerable(Of ConnectionInfoBase)) As IServerConnectionInformation

參數

connectionInfos
IEnumerable<ConnectionInfoBase>

一個用來指定連接資訊的介面。

傳回

ServerInformation 的 IEnumerable 物件,支援所提供的連線資訊。

適用於