The IAlertManager type exposes the following methods.

Methods

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

 MemberDescription
CreateAlertRule()()()()
Creates a new alert rule. The returned object must be added to the server once configured for it to take effect.

All of the properties of the returned IAlertRule have initial values, but no initial value is guaranteed to be valid.

After valid property values have been assigned, the rule can be added to the server using SetAlertRule(IAlertRule)

DeleteAlertRule(Int64)
Deletes the given alert rule from the server. A LiveViewException is thrown if the rule doesn't exist on the server.
GetAlertRule(Int64)
Gets the alert rule specified by the given id.
GetAlertRules(String)
Gets all available alert rules from the server for the given user. A user name of "*" or null returns all users' alerts.

"user" is currently just an opaque string that is used as a key in setting and getting alerts. There is no validation or authentication done with or for this opaque string.

Blocks until all AlertRules are returned.

SetAlertRule(IAlertRule)
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.

ValidateAlertRule(IAlertRule)
Validates the given alert rule. A LiveViewException is thrown if the rule fails to validate properly.

See Also