IServerInformationProvider.GetServerInformation 方法

定义

获取属性中的服务器信息。

重载

名称 说明
GetServerInformation(ConnectionInfoBase)

获取描述信息提供者的服务器信息。

GetServerInformation(IEnumerable<ConnectionInfoBase>)

获取描述信息提供者的服务器信息。

GetServerInformation(ConnectionInfoBase)

获取描述信息提供者的服务器信息。

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>)

获取描述信息提供者的服务器信息。

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>

一个指定连接信息的接口。

返回

一个描述信息提供者的IServerInformation接口。

适用于