IServerInformationProvider.GetServerInformation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得屬性中的伺服器資訊。
多載
| 名稱 | Description |
|---|---|
| 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 介面用來描述資訊提供者。