TemplateExpand Method (IAppContext, NameValueCollection, ContentResolution, String, String, String) |
Expands the template using the nameValues.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public NameValueCollection Expand(
IAppContext appCxt,
NameValueCollection nameValues,
ContentResolution resolution,
out string bodyHigh,
out string bodyLow,
out string subject
)
Public Function Expand (
appCxt As IAppContext,
nameValues As NameValueCollection,
resolution As ContentResolution,
<OutAttribute> ByRef bodyHigh As String,
<OutAttribute> ByRef bodyLow As String,
<OutAttribute> ByRef subject As String
) As NameValueCollection
Parameters
- appCxt
- Type: NetQuarryIAppContext
The application context object. - nameValues
- Type: System.Collections.SpecializedNameValueCollection
The name / values to use during subsitution. - resolution
- Type: NetQuarryContentResolution
Resolution options. - bodyHigh
- Type: SystemString
The High resolution version of the template. - bodyLow
- Type: SystemString
The Low resolution version of the template. - subject
- Type: SystemString
The template's subject, with subsitution performed.
Return Value
Type:
NameValueCollectionThe name / values. The returned collection is guarenteed to be non-null and contain a value for "std_footer."
Remarks
In addition to the name/value pairs provided in
nameValues, this expansion includes
the following built-in replacement tokens:
- UserContext.Signature - From Signature
- UserContext.ID - From ID
- UserContext.Name - From Name
- std_footer - The template obtained from Templates having the name ID + "_Footer"
If a
ContainerTemplate is specified on the template then the expanded template is wrapped in the expanded
ContainerTemplate
using the following substitutions:
- std_footer - Same as above
- mail_send_to - Copied from the "mail_send_to" item, if any, in nameValues
- inner_content - The expanded bodyHigh from the inner template
- inner_subject - The expanded subject from the inner template
- inner_header - The expanded "Header" item, if any, in nameValues
See Also