Class MailTemplateHelper
Defines the mail template helper.
Inheritance
object
MailTemplateHelper
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsTypedEntities
Assembly: Stylelabs.M.Sdk.dll
Syntax
Constructors
MailTemplateHelper(EntityBase)
Initializes a new instance of the MailTemplateHelper class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| EntityBase | user | The user. |
Properties
Name
Gets or sets the template name.
Declaration
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetBody(CultureInfo)
Gets the body of the mail template.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture | The culture. |
Returns
| Type | Description |
|---|---|
| string | The body of the mail template. |
GetDescription(CultureInfo)
Gets the description of the mail template.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture | The culture. |
Returns
| Type | Description |
|---|---|
| string | The description of the mail template. |
GetSubject(CultureInfo)
Gets the subject of the mail template.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture | The culture. |
Returns
| Type | Description |
|---|---|
| string | The subject of the mail template. |
GetTemplateVariables()
Gets the variables.
Declaration
Returns
| Type | Description |
|---|---|
| IList<>TemplateVariable | The list of variables. |
LoadTypedMembersAsync()
Loads typed members.
Declaration
Returns
| Type | Description |
|---|---|
| Task | An awaitable . |
SetBody(CultureInfo, string)
Sets the body of the mail template.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture | The culture. |
| string | body | The body of the mail template. |
SetDescription(CultureInfo, string)
Sets the description of the mail template.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture | The culture. |
| string | description | The description of the mail template. |
SetSubject(CultureInfo, string)
Sets the subject of the mail template.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture | The culture. |
| string | subject | The subject of the mail template. |
SetTemplateVariables(IEnumerable)
Sets the variables.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<>TemplateVariable | variables | The list of variables. |
If you have suggestions for improving this article, let us know!