| INotificationServiceSendNotification Method |
Send a notification to one or more addresses.
Namespace:
SanteDB.Core.Notifications
Assembly:
SanteDB.Core.Api (in SanteDB.Core.Api.dll) Version: 3.0.481-alpha
Syntax Guid[] SendNotification(
string[] to,
string subject,
string body,
DateTimeOffset? scheduleDelivery = null,
bool ccAdmins = false,
params NotificationAttachment[] attachments
)
Function SendNotification (
to As String(),
subject As String,
body As String,
Optional scheduleDelivery As DateTimeOffset? = Nothing,
Optional ccAdmins As Boolean = false,
ParamArray attachments As NotificationAttachment()
) As Guid()
array<Guid>^ SendNotification(
array<String^>^ to,
String^ subject,
String^ body,
Nullable<DateTimeOffset> scheduleDelivery = nullptr,
bool ccAdmins = false,
... array<NotificationAttachment^>^ attachments
)
abstract SendNotification :
to : string[] *
subject : string *
body : string *
?scheduleDelivery : Nullable<DateTimeOffset> *
?ccAdmins : bool *
attachments : NotificationAttachment[]
(* Defaults:
let _scheduleDelivery = defaultArg scheduleDelivery null
let _ccAdmins = defaultArg ccAdmins false
*)
-> Guid[]
Parameters
- to
- Type: SystemString
The scheme qualified addresses to send the notification to. - subject
- Type: SystemString
The subject for the notification. Some relays do not support a subject and will ignore it. - body
- Type: SystemString
The body of the notification. All relays should support the body. - scheduleDelivery (Optional)
- Type: SystemNullableDateTimeOffset
Delay sending the notification to a particular time in the future. - ccAdmins (Optional)
- Type: SystemBoolean
True to also send the notification to the defined administrators in the configuration. - attachments
- Type: SanteDB.Core.NotificationsNotificationAttachment
Zero or more attachments to include with the notification.
Return Value
Type:
GuidAn array of identifiers that correspond to the notifications.
See Also