ManagementUnit.Administration 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 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());
}