Class NotificationEmailSubjectParams
Represents the parameters used to construct a notification email subject line.
Inheritance
object
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public class NotificationEmailSubjectParams
Constructors
View SourceNotificationEmailSubjectParams(string, string?, string?)
Initializes a new instance of the NotificationEmailSubjectParams class.
Declaration
public NotificationEmailSubjectParams(string siteUrl, string? action, string? itemName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | siteUrl | The URL of the site. |
| string | action | The action that triggered the notification. |
| string | itemName | The name of the item involved in the action. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when any parameter is null. |
Properties
View SourceAction
Gets the action that triggered the notification.
Declaration
public string Action { get; }
Property Value
| Type | Description |
|---|---|
| string |
ItemName
Gets the name of the item involved in the action.
Declaration
public string ItemName { get; }
Property Value
| Type | Description |
|---|---|
| string |
SiteUrl
Gets the URL of the site.
Declaration
public string SiteUrl { get; }
Property Value
| Type | Description |
|---|---|
| string |