Connection.Scope Property
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.
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".