Share via


ModuleService.ManagementUnit Property

Definition

Gets the ManagementUnit that is currently being managed by the module service.

protected:
 property Microsoft::Web::Management::Server::ManagementUnit ^ ManagementUnit { Microsoft::Web::Management::Server::ManagementUnit ^ get(); };
protected Microsoft.Web.Management.Server.ManagementUnit ManagementUnit { get; }
member this.ManagementUnit : Microsoft.Web.Management.Server.ManagementUnit
Protected ReadOnly Property ManagementUnit As ManagementUnit

Property Value

A ManagementUnit object.

Examples

The following example uses the ManagementUnit property to get information about the configuration, and then writes it to the tracing output.

public static void TraceManagementUnit(ManagementUnit mu) {

    Trace.WriteLine("ManagementUnit.Administration.AllowUntrustedProviders. " +
        mu.Administration.AllowUntrustedProviders.ToString() +
        "\n ConfigurationPath.FolderPath: " +
        mu.ConfigurationPath.FolderPath.ToString() +
         "\n ConfigurationMap.MachineConfigurationPath: " +
        mu.ConfigurationMap.MachineConfigurationPath.ToString() +
         "\n ConfigurationMap.RootWebConfigurationPath: " +
        mu.ConfigurationMap.RootWebConfigurationPath.ToString() +
         "\n Administration.Modules.ModuleProviders.Count: " +
        mu.Administration.ModuleProviders.Count.ToString());


}

Applies to