IConnectionBuilder.BuildFavorite(IServiceProvider, ManagementScope) Method

Definition

Creates a new connection and adds it to the favorites.

public:
 Microsoft::Web::Management::Client::ConnectionInfo ^ BuildFavorite(IServiceProvider ^ serviceProvider, Microsoft::Web::Management::Server::ManagementScope scope);
public Microsoft.Web.Management.Client.ConnectionInfo BuildFavorite (IServiceProvider serviceProvider, Microsoft.Web.Management.Server.ManagementScope scope);
abstract member BuildFavorite : IServiceProvider * Microsoft.Web.Management.Server.ManagementScope -> Microsoft.Web.Management.Client.ConnectionInfo
Public Function BuildFavorite (serviceProvider As IServiceProvider, scope As ManagementScope) As ConnectionInfo

Parameters

serviceProvider
IServiceProvider

The IServiceProvider interface to connect to.

scope
ManagementScope

An enumeration value that represents an application, server, or site management unit.

Returns

A ConnectionInfo object that contains information about the connection.

Remarks

This method builds a connection with the System.IServiceProvider interface and adds it to the favorites.

The returned ConnectionInfo object is a logical representation of a connection and includes the credentials and scope for the connection. Use this method to log on to the user interface (UI) page.

Applies to