Enables alerting on the given list of monitored queues.

Namespace: ININ.IceLib.Interactions
Assembly: ININ.IceLib.Interactions (in ININ.IceLib.Interactions.dll) Version: 0.0.0.0 (22.3.0.218)

Syntax

C#
public void EnableAlerting(
	IEnumerable<string> scopedQueueNames,
	MonitoredQueueAlertMode alertMode
)
Visual Basic
Public Sub EnableAlerting ( _
	scopedQueueNames As IEnumerable(Of String), _
	alertMode As MonitoredQueueAlertMode _
)

Parameters

scopedQueueNames
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'String>)>)>
List of the scoped queue names for which alerting will be enabled.
alertMode
Type: ININ.IceLib.Interactions..::..MonitoredQueueAlertMode
Alerting is silent if set to AlertSilently.

Exceptions

ExceptionCondition
System..::..ArgumentExceptionscopedQueueNames is empty.
System..::..ArgumentNullExceptionOne or more arguments was nullNothingnullptra null reference (Nothing in Visual Basic).
System..::..ArgumentOutOfRangeException This exception occurs when alertMode is not from the MonitoredQueueAlertMode enumeration.
ININ.IceLib.Connection..::..RequestTimeoutExceptionThe request timed out while waiting for a response.
ININ.IceLib.Connection..::..SessionDisconnectedExceptionThe Session does not have a valid connection.
System..::..ObjectDisposedExceptionThe Session has been disposed.

Version Information

Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.

See Also