The TokenReplace class provides the option to replace tokens formatted [object:property] or [object:property|format] or [custom:no] within a string with the appropriate current property/custom values. Example for Newsletter: 'Dear [user:Displayname],' ==> 'Dear Superuser Account,' Supported Token Sources: User, Host, Portal, Tab, Module, Membership, Profile, Row, Date, Ticks, ArrayList (Custom), IDictionary

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

Syntax

C#
public class TokenReplace : BaseCustomTokenReplace
Visual Basic
Public Class TokenReplace
	Inherits BaseCustomTokenReplace

Remarks