Share via


ManagementUnit.Scope Property

Definition

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.

Applies to