Asynchronously 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 EnableAlertingAsync(
	IEnumerable<string> scopedQueueNames,
	MonitoredQueueAlertMode alertMode,
	AsyncCompletedEventHandler completedCallback,
	Object userState
)
Visual Basic
Public Sub EnableAlertingAsync ( _
	scopedQueueNames As IEnumerable(Of String), _
	alertMode As MonitoredQueueAlertMode, _
	completedCallback As AsyncCompletedEventHandler, _
	userState As Object _
)

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.
completedCallback
Type: System.ComponentModel..::..AsyncCompletedEventHandler
The callback to invoke when the asynchronous operation completes.
userState
Type: System..::..Object
An optional object that contains state information for this request. This object is a way for the caller to store context information which will be provided to the AsyncCompleted event. If no context information is desired then nullNothingnullptra null reference (Nothing in Visual Basic) may be supplied.

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.

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