Gets a SystemMessage passing extra custom parameters to personalize.
Namespace: DotNetNuke.Services.LocalizationAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static string GetSystemMessage( string strLanguage, PortalSettings portalSettings, string messageName, UserInfo userInfo, string resourceFile, ArrayList custom, string customCaption, int accessingUserID ) |
Visual Basic |
---|
Public Shared Function GetSystemMessage ( strLanguage As String, portalSettings As PortalSettings, messageName As String, userInfo As UserInfo, resourceFile As String, custom As ArrayList, customCaption As String, accessingUserID As Integer ) 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.
- resourceFile
- Type: System..::..String
The root name of the Resource File where the localized text can be found
- custom
- Type: System.Collections..::..ArrayList
An ArrayList with replacements for custom tags.
- customCaption
- Type: System..::..String
prefix for custom tags
- accessingUserID
- Type: System..::..Int32
UserID of the user accessing the system message
Return Value
The message body with all tags replaced.
Remarks
Custom tags are of the form [Custom:n], where n is the zero based index which
will be used to find the replacement value in Custom parameter.