Element
This page is specific to:.NET Framework Version:4.0
.NET Framework 4
<appDomainResourceMonitoring> Element

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Instructs the runtime to collect statistics on all application domains in the process for the life of the process.

<configuration> Element
  <runtime> Element
    <appDomainResourceMonitoring> Element
<appDomainResourceMonitoring  
   enabled="true|false"/>
Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute

Description

enabled

Required attribute.

Specifies whether the runtime collects statistics for application domain resource monitoring.

enabled Attribute

Value

Description

true

Statistics for application domain resource monitoring are collected.

false

Statistics for application domain resource monitoring are not collected.

Child Elements

None.

Parent Elements

Element

Description

configuration

The root element in every configuration file used by the common language runtime and .NET Framework applications.

runtime

Contains information about assembly binding and garbage collection.

Remarks

Application domain resource monitoring is available through the managed application domain class, the hosting ICLRAppDomainResourceMonitor interface, and event tracing for Windows (ETW). When monitoring is enabled, statistics are collected for all application domains in the process for the life of the process.

To enable monitoring from managed code, use the MonitoringIsEnabled()()() property.

This configuration element is available only in the .NET Framework version 4 Beta 2 and later.

Example

The following example shows how to enable application domain resource monitoring.

<configuration>
   <runtime>
      <appDomainResourceMonitoring enabled="true"/>
   </runtime>
</configuration>
See Also

Reference

AppDomainMonitoringIsEnabled()()()

Other Resources

© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View