ManagementUnit.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.
When overridden in a derived class, gets the management scope associated with the current management unit.
public:
abstract property Microsoft::Web::Management::Server::ManagementScope Scope { Microsoft::Web::Management::Server::ManagementScope get(); };
public abstract Microsoft.Web.Management.Server.ManagementScope Scope { get; }
member this.Scope : Microsoft.Web.Management.Server.ManagementScope
Public MustOverride ReadOnly Property Scope As ManagementScope
Property Value
One of the ManagementScope values.
Examples
ManagementUnit munt = this.ManagementUnit;
Trace.WriteLine("Scope " + munt.Scope.ToString());
Trace.WriteLine("ApplicationPath " +
munt.ConfigurationPath.ApplicationPath.ToString());
Remarks
The default IIS Manager view displays the localhost. If you navigate to a site or application on the localhost, the Scope property value is Microsoft.Web.Management.Server.ManagementScope.Server because the connection is at the server level.