Table of Contents

Class PlaceholderReplacer

Namespace
Dynamicweb.Mailing
Assembly
Dynamicweb.Mailing.dll
Class PlaceholderReplacer.
public class PlaceholderReplacer
Inheritance
PlaceholderReplacer
Inherited Members

Methods

FindPlaceholders(string)

Find placeholders in specified content
public static IEnumerable<string> FindPlaceholders(string content)

Parameters

content string
The content.

Returns

IEnumerable<string>
A list of placeholders.

Remarks

A list contains unique placeholders without opening and closing brackets

ReplacePlaceholders(string, IDictionary<string, object>)

Replace placeholders in specified content
public static string ReplacePlaceholders(string content, IDictionary<string, object> values)

Parameters

content string
The content.
values IDictionary<string, object>
The values for placeholders.

Returns

string

ReplacePlaceholders(string, IDictionary<string, object>, bool)

Replace placeholders in specified content
public static string ReplacePlaceholders(string content, IDictionary<string, object> values, bool removeMissingPlaceholders)

Parameters

content string
The content.
values IDictionary<string, object>
The values for placeholders.
removeMissingPlaceholders bool
When it is true removes missing placeholders.

Returns

string
To top