Administration.GetRule Method

Retrieves a rule that matches the specified ID.

 public Rule GetRule(
    Guid ruleId
);

Parameters

  • ruleId
    The rule ID.

Return Value

The specified Rule.

Exceptions

Exception Type Condition
System.UnauthorizedAccessException The user does not have permissions for these objects.

Requirements

Platforms: Requires Windows 2000 Server or later

Version: Requires MOM 2005 or later

Namespace: Microsoft.EnterpriseManagement.Mom

Assembly: Microsoft.Mom.Sdk (in Microsoft.Mom.Sdk.dll)

See Also

Administration Class | Administration Members | Rule Class