Represents a command that executes in response to a triggered alert or state change. Namespace: Microsoft.EnterpriseManagement.Administration
Assembly: Microsoft.EnterpriseManagement.OperationsManager (in microsoft.enterprisemanagement.operationsmanager.dll)

Usage

Visual Basic
Dim instance As CommandNotificationAction

Syntax

Visual Basic
<SerializableAttribute> _
Public Class CommandNotificationAction
		Inherits NotificationAction
C#
[SerializableAttribute] 
public class CommandNotificationAction : NotificationAction
C++
[SerializableAttribute] 
public ref class CommandNotificationAction : public NotificationAction
J#
/** @attribute SerializableAttribute() */ 
public class CommandNotificationAction extends NotificationAction
JScript
SerializableAttribute 
public class CommandNotificationAction extends NotificationAction

Remarks

Defining a command that responds to triggered alerts or state changes allows you to specify a path to an application or script that can perform basic troubleshooting functions for a particular failure.

After initializing a CommandNotificationAction object, you can add it to the list of actions for a particular subscription by setting the value of the Actions parameter.


Inheritance Hierarchy

System.Object
   Microsoft.EnterpriseManagement.Common.MonitoringBase
     Microsoft.EnterpriseManagement.Common.CreatableMonitoringBaseWithId
       Microsoft.EnterpriseManagement.Administration.NotificationAction
        Microsoft.EnterpriseManagement.Administration.CommandNotificationAction

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP

Target Platforms

Windows Server 2008,Windows Server 2003,Windows Vista,Windows XP

See Also