Click or drag to resize

StringUtilsTemplateReplace Method

Perform string replacement and embedded function resolution (ResolveEmbeddedFunctions(String, IDatabase, ResolveOptions)) on the provided string per the specified replacement flags. This type of replacement was originally designed for Template objects containing HTML templates requiring values to be injected prior to use and is used in the various Replace(IAppContext, NameValueCollection, ContentResolution, TemplateReplaceFlags) methods.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static string TemplateReplace(
	string s,
	IAppContext cxt,
	NameValueCollection nameValues,
	TemplateReplaceFlags replaceFlags
)

Parameters

s
Type: SystemString
The string against which to apply the replacements.
cxt
Type: NetQuarryIAppContext
The application context (used to resolve embedded functions).
nameValues
Type: System.Collections.SpecializedNameValueCollection
The set of name/value pairs for which to perform replacement.
replaceFlags
Type: NetQuarryTemplateReplaceFlags
Options desribing how the replacement should be performed.

Return Value

Type: String
The original string with replacements performed.
See Also