Share via


ConnectionInfo Constructor

Definition

Initializes a new instance of the ConnectionInfo class.

public:
 ConnectionInfo(System::String ^ name, Uri ^ url, bool isLocal, Microsoft::Web::Management::Server::ManagementScope scope, Microsoft::Web::Management::Client::ManagementScopePath ^ scopePath, Microsoft::Web::Management::Client::ConnectionCredential ^ credentials, Microsoft::Web::Management::Client::IConnectionManager ^ connectionManager);
public ConnectionInfo (string name, Uri url, bool isLocal, Microsoft.Web.Management.Server.ManagementScope scope, Microsoft.Web.Management.Client.ManagementScopePath scopePath, Microsoft.Web.Management.Client.ConnectionCredential credentials, Microsoft.Web.Management.Client.IConnectionManager connectionManager);
new Microsoft.Web.Management.Client.ConnectionInfo : string * Uri * bool * Microsoft.Web.Management.Server.ManagementScope * Microsoft.Web.Management.Client.ManagementScopePath * Microsoft.Web.Management.Client.ConnectionCredential * Microsoft.Web.Management.Client.IConnectionManager -> Microsoft.Web.Management.Client.ConnectionInfo
Public Sub New (name As String, url As Uri, isLocal As Boolean, scope As ManagementScope, scopePath As ManagementScopePath, credentials As ConnectionCredential, connectionManager As IConnectionManager)

Parameters

name
String

The name for the ConnectionInfo object.

url
Uri

The Uniform Resource Identifier (URI) for the host.

isLocal
Boolean

The local connection state.

credentials
ConnectionCredential

The ConnectionCredential object for the ConnectionInfo.

connectionManager
IConnectionManager

The IConnectionManager object for the ConnectionInfo.

Exceptions

The name, scopePath, credentials, or connectionManager parameter is null.

Remarks

The value of the scope parameter must be Application or Server.

Applies to