Class EmailContext
- Namespace
- Kentico.EmailBuilder.Web.Mvc
- Assembly
- Kentico.Content.Web.Mvc.dll
Email context.
public sealed class EmailContext
- Inheritance
-
objectEmailContext
- Extension Methods
Remarks
Context is initialized for use only in an email builder.
Constructors
EmailContext()
public EmailContext()
Properties
BuilderMode
Email builder mode.
public EmailBuilderMode BuilderMode { get; init; }
Property Value
ContentTypeName
Email content type name.
public string ContentTypeName { get; init; }
Property Value
- string
EmailChannelId
Email channel identifier.
public int EmailChannelId { get; init; }
Property Value
- int
EmailFields
Fields of an email content type.
public IDataContainer EmailFields { get; init; }
Property Value
Remarks
Currently, fields with the following data types are not supported and their value cannot be accessed: ContentItemReference, ContentItemAsset, Assets, WebPages, and Taxonomy. In a future update, we will introduce an option to access any email content item field, at which point this property will be marked as obsolete.
LanguageName
Current email language name.
public string LanguageName { get; init; }
Property Value
- string