TemplateReplace Method (IAppContext, NameValueCollection, ContentResolution, TemplateReplaceFlags) |
Replaces the named tags in the document with the values in the NameValueCollection.
Note that this overload
does support embedded function resolution using
EmbeddedParser.
Replace expands the template body using only the values in nameValues. To get the expanded body use
GetExpandedBody(IAppContext, NameValueCollection, ContentResolution) or Expand(IAppContext, NameValueCollection, ContentResolution, String, String, String).
These methods provide additional functionality as described in Expand(IAppContext, NameValueCollection, ContentResolution, String, String, String).
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public string Replace(
IAppContext cxt,
NameValueCollection nameValues,
ContentResolution resolution,
TemplateReplaceFlags replaceFlags
)
Public Function Replace (
cxt As IAppContext,
nameValues As NameValueCollection,
resolution As ContentResolution,
replaceFlags As TemplateReplaceFlags
) As String
Parameters
- cxt
- Type: NetQuarryIAppContext
The appliation context. - nameValues
- Type: System.Collections.SpecializedNameValueCollection
The name/value pairs of replacement values. - resolution
- Type: NetQuarryContentResolution
The resolution for the replacement (High, Low) - replaceFlags
- Type: NetQuarryTemplateReplaceFlags
Replacement flags
Return Value
Type:
StringThe template with the replacement performed.
See Also