Share via


Connection.Scope Property

Definition

Gets the management scope of the current connection.

public:
 property Microsoft::Web::Management::Server::ManagementScope Scope { Microsoft::Web::Management::Server::ManagementScope get(); };
public Microsoft.Web.Management.Server.ManagementScope Scope { get; }
member this.Scope : Microsoft.Web.Management.Server.ManagementScope
Public ReadOnly Property Scope As ManagementScope

Property Value

A ManagementScope object.

Examples

public string scopeStr(IServiceProvider sp) {
    Connection con = (Connection)sp.GetService(typeof(Connection));
    return con.Scope.ToString();
}

Remarks

There are three possible management scopes: application, site, and server.

Note

For an application under a site connection, the returned scope will be "Site". For a site or application under a server connection, the returned scope will be "Server".

Applies to