ManagementGroup.GetMonitoringRule(Guid) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Please use Monitoring.GetRule()
Gets a rule by id.
public:
Microsoft::EnterpriseManagement::Configuration::MonitoringRule ^ GetMonitoringRule(Guid id);
[System.Obsolete("Please use Monitoring.GetRule()")]
public Microsoft.EnterpriseManagement.Configuration.MonitoringRule GetMonitoringRule (Guid id);
member this.GetMonitoringRule : Guid -> Microsoft.EnterpriseManagement.Configuration.MonitoringRule
Public Function GetMonitoringRule (id As Guid) As MonitoringRule
Parameters
- id
- Guid
The id of the requested rule.
Returns
The rule.
- Attributes
Exceptions
A MonitoringRule with that id was not found.