Share via


Computer.GetAssociatedRules Method

Retrieves all rules associated with the computer.

 public RulesCollection GetAssociatedRules();

Return Value

The RulesCollection associated with the computer.

Exceptions

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

Remarks

Rules are associated with computers through computer groups.

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

Computer Class | Computer Members | Rule Class | Computer.GetAssociatedRuleGroups Method