Principal constructor. The recipients string can be a comma-separated list of addresses. For example, for SMTP email, the recipients string can be: "foo@microsoft.com, bar@microsoft.com, Foo.Bar@microsoft.com" (without the quotation marks). Note that for email, a single JobNotification with three addresses is different from three JobNotifications with one address each: the former will send one notification with all three recipients at once, while the latter will send three notifications, one to each recipient. This constructor will throw an exception if any of the recipient addresses is incorrect.

Namespace: VcClient
Assembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)

Syntax

C#
public JobNotification(
	JobNotification..::..NotificationMethod method,
	string recipients
)
Visual Basic
Public Sub New ( _
	method As JobNotification..::..NotificationMethod, _
	recipients As String _
)
Visual C++
public:
JobNotification(
	JobNotification..::..NotificationMethod method, 
	String^ recipients
)

Parameters

method
Type: VcClient..::..JobNotification..::..NotificationMethod
Notification method
recipients
Type: String
A comma-separated list of notification recipients, for example SMTP addresses

Examples

CopyC#
string recipients = "foo@microsoft.com, bar@microsoft.com, Foo.Bar@microsoft.com";
JobNotification jobNotification = new JobNotification(NotificationMethod, recipients);

Exceptions

ExceptionCondition
ArgumentExceptionOne of the recipient addresses is not a valid address for the notification method

See Also