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: VcClientAssembly: VcClient (in VcClient.dll) Version: 1.0.0.0 (1.8.400.4142)
Syntax
Examples
CopyC#
string recipients = "foo@microsoft.com, bar@microsoft.com, Foo.Bar@microsoft.com";
JobNotification jobNotification = new JobNotification(NotificationMethod, recipients);
Exceptions
Exception | Condition |
---|
ArgumentException | One of the recipient addresses is not a valid address for the notification method |
See Also