Gets a SystemMessage.
Namespace: DotNetNuke.Services.LocalizationAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static string GetSystemMessage( PortalSettings portalSettings, string messageName ) |
Visual Basic |
---|
Public Shared Function GetSystemMessage ( portalSettings As PortalSettings, messageName 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.
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