Collapse All Expand All | Language Filter: C#Language Filter: Visual Basic Language Filter: Visual C++ C# Visual Basic Visual C++ | See Also
StreamBase Client API
IAlertManager..::SetAlertRule Method

Add or updates the alert rule (matched using the rule's ID) on the server.

Only alert rules created via CreateAlertRule()()()() or retrieved by this manager may be added to the server via this method.

If a new alert rule is being added, the given IAlertRule is mutated on return such that its ID is set.

Namespace: StreamBase.LiveView.API.Alerts
Assembly: StreamBase.LiveView.API (in StreamBase.LiveView.API.dll) Version: 10.3.0.4 (10.3.0.4)

# Syntax

| C# |  |  | Visual Basic |  |  | Visual C++ |

    IAlertRule SetAlertRule(
    	IAlertRule rule
    )

    Function SetAlertRule ( _
    	rule As IAlertRule _
    ) As IAlertRule

    IAlertRule^ SetAlertRule(
    	IAlertRule^ rule
    )

#### Parameters

rule
  IAlertRule

#### Return Value

# Exceptions

Exception | Condition
--- | ---
StreamBase.LiveView.API..::..LiveViewException | If the rule's AlertQueryConfig object had its QueryString explicitly set, which is currently unsupported.

# See Also

IAlertManager Interface
StreamBase.LiveView.API.Alerts Namespace