Microsoft.EnterpriseManagement.Mom Namespace

The Microsoft.EnterpriseManagement.Mom namespace contains general-purpose classes and types for accessing MOM operations data, rules, and computers. Items in this namespace are defined in two separate assemblies:

  • Microsoft.Mom.Sdk (in Microsoft.Mom.Sdk.dll)
  • MOM.Context (in MOM.Context.dll)

Applications that use classes in this namespace should reference both assemblies.

Security and Access

The classes in the Microsoft.EnterpriseManagement.Mom namespace use console scopes to limit access to operations data in MOM. For more information, see ConsoleScope Class. Console scopes will govern the amount of information visible to custom applications built using the MOM Management Server Class Library, based on the account the application is running under.

Note Note   

If you run an MCL application using an account that does not have full access to all the MOM computer groups, many methods and properties will return only the subset of the operations data to which the account has permissions.

The methods on the top-level Administration object will prevent users with very little or no rights in MOM from accessing the objects they would not otherwise be able to see in the MOM consoles. Most of these methods throw an UnauthorizedAccessException when the user account does not have sufficient rights.

Classes

Name Description

Administration

This is the root administration class that all MOM SDK clients must use.

Alert

The Microsoft.EnterpriseManagement.Mom.Alert class defines a MOM Alert.

AlertColumnNameExpression

The Microsoft.EnterpriseManagement.Mom.Internal.Expression for left-hand side column references in the Microsoft.EnterpriseManagement.Mom.AlertQueryExpression object.

AlertQuery

An Microsoft.EnterpriseManagement.Mom.AlertQuery instance can be used to run a scoped query on the system.

AlertQueryExpression

The QueryExpression used by the Microsoft.EnterpriseManagement.Mom.AlertQuery class.

AlertResolutionState

The AlertResolutionState class represents the sequence of resolution states that are assigned to alerts between their creation and their eventual resolution.

AlertsCollection

Stores a collection of Alert objects.

Attribute

Represents an attribute used to define computer group membership. An attribute is a name-value pair describing a specific characteristic of a computer, hardware component, software, or service. Unlike MOM 2000, computer attributes are not limited to Windows registry entries.

AttributesCollection

Stores a collection of computer discovery attributes.

Computer

This class defines a MOM Computer object.

ComputerColumnNameExpression

The Microsoft.EnterpriseManagement.Mom.Internal.Expression for left-hand side column references in the Microsoft.EnterpriseManagement.Mom.ComputerQueryExpression object.

ComputerGroup

This class defines a MOM ComputerGroup.

ComputerGroupsCollection

Stores a collection of ComputerGroup objects.

ComputerMaintenance

The ComputerMaintenance class is used to place computers in maintenance mode and to return them online again.

ComputerQuery

An Microsoft.EnterpriseManagement.Mom.ComputerQuery instance can be used to run a scoped query for computers in the current MOM Management Group.

ComputerQueryExpression

The ComputerQueryExpression class is used to build advanced queries for retrieving computer information.

ComputersCollection

Stores a collection of Computer objects.

ConsoleScope

The ConsoleScope class represents a console scope that has been created in the MOM Administrator console. Console scopes are used to control a user's access to MOM objects in the Operations Console and the Web Console.

ConsoleScopesCollection

Stores a collection of ConsoleScope objects.

CustomAlert

The CustomAlert class represents alerts that are programmatically added to MOM. Unlike the RuntimeAlert class, the properties of the CustomAlert class are writable.

CustomComputer

This class is for creating and submitting user-defined computer objects to the MOM Management Server.

CustomEvent

This class is for creating and submitting user-defined event objects to the MOM Management Server using the Computer.InsertEvents method.

CustomPerformanceData

The CustomPerformanceData class represents performance data that are programmatically added to MOM. Unlike the RuntimePerformanceData class, the properties of the CustomPerformanceData class are writable.

Event

This class describes a MOM Event.

EventColumnNameExpression

The Microsoft.EnterpriseManagement.Mom.Internal.Expression for left-hand side column references in the Microsoft.EnterpriseManagement.Mom.EventQueryExpression object.

EventQuery

An Microsoft.EnterpriseManagement.Mom.EventQuery instance can be used to run a scoped query for computers in the current MOM Management Group.

EventQueryExpression

The query expression used by the EventQuery class.

EventsCollection

Stores a collection of Event objects.

Knowledge

This class exposes the knowledge associated with a rule.

ManagementServer

This is the management server object of the MOM Class Library.

MomSdkException

The base exception class for all exceptions in the Mom class library.

MomSdkObjectModifiedException

This exception is thrown by several methods that update MOM data. It indicates that the object has changed since the reference to it was obtained. You should refresh the reference, modify the properties again, and then resubmit the changes.

Override

Represents a rule override.

OverridesCollection

Stores a collection of Override objects.

PerformanceData

This class describes a performance data point.

PerformanceData.Value

This class represents sampled performance data values.

PerformanceData.ValuesCollection

Stores a collection of Value objects.

PerformanceDataCollection

Stores a collection of PerformanceData objects.

PerformanceDataColumnNameExpression

The Microsoft.EnterpriseManagement.Mom.Internal.Expression for left-hand side column references in the Microsoft.EnterpriseManagement.Mom.PerformanceDataQueryExpression object.

PerformanceDataQuery

The PerformanceDataQuery class is used to build advanced queries for retrieving performance data information.

PerformanceDataQueryExpression

The QueryExpression used by the Microsoft.EnterpriseManagement.Mom.PerformanceDataQuery class.

QueryExpression

Classes derived from this abstract base class are used to perform queries on specific types of MOM operations data.

Rule

This class defines a MOM Rule.

RuleGroup

This class defines a MOM RuleGroup.

RuleGroupsCollection

Stores a collection of RuleGroup objects.

RulesCollection

Stores a collection of Rule objects.

Script

The Script class represents a response script stored in the MOM database.

ScriptCollection

Stores a collection of Script objects.

ScriptParameter

Represents the parameters passed from a rule to a script response.

ScriptParameterCollection

Stores a collection of ScriptParameter objects.

Task

The Task class represents a task stored in the MOM database.

TaskQuery

This class is used to query task information.

TasksCollection

Stores a collection of Task objects.

Threshold

Represents the threshold defined in a performance data rule.

ValueExpression

The Microsoft.EnterpriseManagement.Mom.Internal.Expression used for right-hand side literal values for any QueryExpression derived object.

Enumerations

Name Description

AlertColumnNameExpression.ColumnName

Defines the column names that are valid for AlertColumnNameExpression objects.

AlertQuery.SortColumn

Defines the column names that can be used as keys for sorting alert query results.

AlertQuery.SortOrder

Defines the valid sorting types for alert query results.

AlertSeverity

Represents the possible values for the severity of an alert.

Attribute.ValueType

Defines the data types that are available for using in attribute values.

Computer.ManagementType

Defines the management types supported by MOM.

Computer.PendingActionState

Defines the pending actions occurring on a managed computer.

ComputerColumnNameExpression.ColumnName

Defines the column names that are valid for ComputerColumnNameExpression objects.

ComputerGroup.HealthPolicy

Defines the 3 states used to summarize the health of an entire computer group.

ComputerQuery.SortColumn

Defines the column names that can be used as keys for sorting computer query results.

ComputerQuery.SortOrder

Defines the valid sorting types for computer query results.

ComputerTypes

Defines the valid computer types in MOM.

Event.EventType

Defines the values for the Event.Type property.

EventColumnNameExpression.ColumnName

Defines the column names that are valid for EventColumnNameExpression objects.

EventQuery.SortColumn

Defines the column names that can be used as keys for sorting event query results.

EventQuery.SortOrder

Defines the valid sorting types for event query results.

PerformanceDataColumnNameExpression.ColumnName

Defines the column names that are valid for PerformanceDataColumnNameExpression objects.

PerformanceDataQuery.SortColumn

Specifies how items in a list are sorted.

PerformanceDataQuery.SortOrder

Defines the valid sorting types for performance data query results.

ProblemState

Represents the possible values for alerts used for state monitoring.

Threshold.ThresholdDirection

Defines the possible values for the Threshold.Direction property.

Threshold.ThresholdType

Defines the types of performance threshold values.