Gets a SystemMessage.
Namespace: DotNetNuke.Services.LocalizationAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static string GetSystemMessage( PortalSettings portalSettings, string messageName, UserInfo userInfo, string resourceFile ) |
Visual Basic |
---|
Public Shared Function GetSystemMessage ( portalSettings As PortalSettings, messageName As String, userInfo As UserInfo, resourceFile As String ) As String |
Parameters
- 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.
- resourceFile
- Type: System..::..String
The root name of the Resource File where the localized text can be found
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