NotificationManagerSend Method (ConnectionId, SessionId, NotificationType, Int32, String, String) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Sends a user notification.

Namespace: ContentStudio.Notifications
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public int Send(
	ConnectionId connectionId,
	SessionId sessionId,
	NotificationType notificationType,
	int receiverId,
	string title,
	string details
)

Parameters

connectionId
Type: ContentStudioConnectionId
A value that identifies the web site
sessionId
Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId).
notificationType
Type: ContentStudio.NotificationsNotificationType
The type of notification to send
receiverId
Type: SystemInt32
The id of the Content Studio user that receives the notification.
title
Type: SystemString
The title (subject) of the notification to send. This value cannot exceed MAX_NOTIFICATION_TITLE characters.
details
Type: SystemString
The message body to send. This parameter can be null or empty.

Return Value

Type: Int32
The id of the notification send.
Exceptions

ExceptionCondition
CSExceptionA business rule was violated in the underlying Content Studio database
CSPermissionDeniedExceptionThe caller has no permission to perform the requested action
CSInvalidSessionExceptionThe session is invalid
CSInvalidParameterExceptionA parameter has an invalid value
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

Create permission on the receiver mailbox is required. Normally this permission is granted to all authenticated users
See Also

Reference