Share via


IServerInformationService.GetServerInformation Method

Definition

Retrieves an IServerInformation object that supports the provided connection information.

Overloads

GetServerInformation(ConnectionInfoBase)

Retrieves an IServerInformation object with the specified connection information.

GetServerInformation(IEnumerable<ConnectionInfoBase>)

Retrieves an IEnumerable object of ServerInformation that supports the provided connection information.

GetServerInformation(ConnectionInfoBase)

Retrieves an IServerInformation object with the specified connection information.

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

Parameters

connectionInfo
ConnectionInfoBase

An interface that specifies the connection information.

Returns

An IServerInformation object that supports the provided connection information.

Applies to

GetServerInformation(IEnumerable<ConnectionInfoBase>)

Retrieves an IEnumerable object of ServerInformation that supports the provided connection information.

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

Parameters

connectionInfos
IEnumerable<ConnectionInfoBase>

An interface that specifies the connection information.

Returns

An IEnumerable object of the ServerInformation that supports the provided connection information.

Applies to