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: 11.20.7Syntax
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 |
ID
The ID of the message.
Declaration
public int ID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Will be 0 if the message haven't been saved
Recipients
The receivers for the message
Declaration
public IEnumerable<INotificationUser> Recipients { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<INotificationUser> |
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 |