Replaces tokens in sourceText parameter with the property values

Namespace: DotNetNuke.Services.Tokens
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public string ReplaceEnvironmentTokens(
	string sourceText,
	IDictionary custom,
	string customCaption
)
Visual Basic
Public Function ReplaceEnvironmentTokens ( 
	sourceText As String,
	custom As IDictionary,
	customCaption As String
) As String

Parameters

sourceText
Type: System..::..String
String with [Object:Property] tokens
custom
Type: System.Collections..::..IDictionary
NameValueList for replacing [custom:name] tokens, where 'custom' is specified in next param and name is either thekey or the index number in the string
customCaption
Type: System..::..String
Token name to be used inside token [custom:name]

Return Value

string containing replaced values

See Also