Class NotificationMessage
A Notification message that can be sent between users. This class supports the EPiServer infrastructure and is not intended to be used directly from your code.
Inheritance
System.Object
NotificationMessage
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Notification
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class NotificationMessage
Constructors
NotificationMessage()
Declaration
public NotificationMessage()
Properties
Category
The category of the message.
Declaration
public Uri Category { get; set; }
Property Value
Type | Description |
---|---|
System.Uri |
ChannelName
The name of the channel for the name.
Declaration
public string ChannelName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
It is the ChannelName in combination with user settings that controls which INotificationFormatter and INotificationProvider that will be used to format and send the message.
Content
The content of the message
Declaration
public string Content { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Recipients
The receivers for the message
Declaration
public IEnumerable<INotificationUser> Recipients { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<INotificationUser> |
SendAt
If given, specifies the earliest time the message should be sent.
Declaration
public DateTime? SendAt { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
Remarks
The actual send date is dependent on the settings for the scheduled job that dispatches messages.
Sender
The sender of the message
Declaration
public INotificationUser Sender { get; set; }
Property Value
Type | Description |
---|---|
INotificationUser |
Subject
The message subject
Declaration
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TypeName
The type of the message.
Declaration
public string TypeName { get; set; }
Property Value
Type | Description |
---|---|
System.String |