/// Gets a SystemMessage.
Namespace: DotNetNuke.Services.LocalizationAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static string GetSystemMessage( string strLanguage, PortalSettings portalSettings, string messageName, UserInfo userInfo ) |
Visual Basic |
---|
Public Shared Function GetSystemMessage ( strLanguage As String, portalSettings As PortalSettings, messageName As String, userInfo As UserInfo ) As String |
Parameters
- strLanguage
- Type: System..::..String
A specific language to get the SystemMessage for.
- portalSettings
- Type: DotNetNuke.Entities.Portals..::..PortalSettings
The portal settings for the portal to which the message will affect.
- messageName
- Type: System..::..String
The message tag which identifies the SystemMessage.
- userInfo
- Type: DotNetNuke.Entities.Users..::..UserInfo
Reference to the user used to personalize the message.
Return Value
The message body with all tags replaced.
Remarks
Supported tags:
- All fields from HostSettings table in the form of: [Host:field]
- All properties defined in PortalInfo in the form of: [Portal:property]
- [Portal:URL]: The base URL for the portal
- All properties defined in UserInfo in the form of: [User:property]
- All values stored in the user profile in the form of: [Profile:key]
- [User:VerificationCode]: User verification code for verified registrations
- [Date:Current]: Current date