Replaces tokens in sourceText parameter with the property values
Namespace: DotNetNuke.Services.TokensAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public string ReplaceEnvironmentTokens( string sourceText, IDictionary custom, string[] customCaptions ) |
Visual Basic |
---|
Public Function ReplaceEnvironmentTokens ( sourceText As String, custom As IDictionary, customCaptions 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
- customCaptions
- Type: array<System..::..String>[]()[][]
Token names to be used inside token [custom:name], where 'custom' is one of the values in the string array