Class EventMessage
An event message
Inheritance
object
Namespace: Umbraco.Cms.Core.Events
Assembly: Umbraco.Core.dll
Syntax
public sealed class EventMessage
Constructors
View SourceEventMessage(string, string, EventMessageType)
Initializes a new instance of the EventMessage class.
Declaration
public EventMessage(string category, string message, EventMessageType messageType = EventMessageType.Default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | category | |
| string | message | |
| EventMessageType | messageType |
Properties
View SourceCategory
Gets the category of the message.
Declaration
public string Category { get; }
Property Value
| Type | Description |
|---|---|
| string |
IsDefaultEventMessage
This is used to track if this message should be used as a default message so that Umbraco doesn't also append it's own default messages
Declaration
public bool IsDefaultEventMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Message
Gets the message content.
Declaration
public string Message { get; }
Property Value
| Type | Description |
|---|---|
| string |
MessageType
Gets the type of the message.
Declaration
public EventMessageType MessageType { get; }
Property Value
| Type | Description |
|---|---|
| EventMessageType |