IServerInformationService.GetServerInformation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
擷取支援所提供連線資訊的 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 物件,支援所提供的連線資訊。