Class MessageTemplates
Inheritance
object
Namespace: Umbraco.Cms.Core.Logging
Assembly: Umbraco.Infrastructure.dll
Syntax
public class MessageTemplates : IMessageTemplates
Constructors
View SourceMessageTemplates()
Declaration
public MessageTemplates()
Methods
View SourceRender(string, params object[])
Renders a message template with the provided arguments.
Declaration
public string Render(string messageTemplate, params object[] args)
Parameters
| Type | Name | Description |
|---|---|---|
| string | messageTemplate | The message template containing placeholders. |
| object[] | args | The arguments to substitute into the template placeholders. |
Returns
| Type | Description |
|---|---|
| string | The rendered message with placeholders replaced by argument values. |