IServerInformationProvider.GetServerInformation 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取属性中的服务器信息。
重载
| 名称 | 说明 |
|---|---|
| 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接口。