Share via


IConnectionManager.ActivateConnection(ConnectionInfo) Method

Definition

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.

Applies to