[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Exposes a task through a provider. An example of a management task is starting a process or stopping a service. The ManagementTask attribute marks methods that are exposed though an automation space, such as Windows Management Instrumentation (WMI). The exposed method completes the task.
System.Core (in System.Core.dll)
A method that is marked with the ManagementTask attribute is defined by a verb. The verb gives the task its name and must be an approved management verb. If the task enumerates manageable objects, the method declaration should be marked with the ManagementEnumeration attribute.
// Use the ManagementTask attribute to specify that a method
// is exposed to WMI through this provider. Consumers will be
// able to execute this method through WMI.
public void ResetCounters()