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".
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for