Share via


Context Class

The Context class is the root class for all managed code responses. It is used to access or create most of the other types of objects found in the Microsoft.EnterpriseManagement.Mom.Runtime namespace, such as alerts, events, and performance data.

You do not explicitly create instances of the Context class in managed code responses. An existing instance must be passed as a parameter from the MOM runtime to the managed code response method as it is invoked. If your method does not accept a Context class parameter, the method will not have access to the functionality of the Context class or the objects it provides. For more information about using the Context class, see Developing Managed Code Response Assemblies.

For a list of all members of this type, see Context members.

 public class Context

Thread Safety

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

Requirements

Platforms: Requires Windows 2000 Server or later

Version: Requires MOM 2005 or later

Namespace: Microsoft.EnterpriseManagement.Mom.Runtime

Assembly: MOM.Context (in MOM.Context.dll)