IConnectionManager.ActivateConnection(ConnectionInfo) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Activates a connection by opening a new management session.
public:
Microsoft::Web::Management::Client::Connection ^ ActivateConnection(Microsoft::Web::Management::Client::ConnectionInfo ^ connection);
public Microsoft.Web.Management.Client.Connection ActivateConnection (Microsoft.Web.Management.Client.ConnectionInfo connection);
abstract member ActivateConnection : Microsoft.Web.Management.Client.ConnectionInfo -> Microsoft.Web.Management.Client.Connection
Parameters
- connection
- ConnectionInfo
The ConnectionInfo object that contains the Connection object to activate.
Returns
The connection specified by the connection
parameter.
Remarks
Calls to this method will iterate through the connection collection. If the connection is already active, this method will return the connection rather than opening a new session.