Share via


ManagementUnit.Administration Property

Definition

Gets the current management administration configuration.

public:
 property Microsoft::Web::Management::Server::ManagementAdministrationConfiguration ^ Administration { Microsoft::Web::Management::Server::ManagementAdministrationConfiguration ^ get(); };
public Microsoft.Web.Management.Server.ManagementAdministrationConfiguration Administration { get; }
member this.Administration : Microsoft.Web.Management.Server.ManagementAdministrationConfiguration
Public ReadOnly Property Administration As ManagementAdministrationConfiguration

Property Value

A ManagementAdministrationConfiguration that contains the configuration information.

Examples

The following example uses the Administration property to get configuration information and write it to tracing output.

public void TraceMAC() {
    ManagementUnit mu = this.ManagementUnit;

    ManagementAdministrationConfiguration mac = mu.Administration;

    Trace.WriteLine("mac.AllowUntrustedProviders = "
        + mac.AllowUntrustedProviders.ToString());
    Trace.WriteLine("mac.ModuleProviders.Count = "
        + mac.ModuleProviders.Count.ToString());
    Trace.WriteLine("mac.TrustedProviders.Count = "
        + mac.TrustedProviders.Count.ToString());

}

Applies to