adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / Message Class / CreateWithReplacements Method

In This Topic
    CreateWithReplacements Method
    In This Topic
    Creates a new Message using the specified message code and replacement strings
    Syntax
    'Declaration
     
    
    Public Shared Function CreateWithReplacements( _
       ByVal type As MessageType, _
       ByVal code As String, _
       ByVal ParamArray replacementStrings() As Object _
    ) As Message
    public static Message CreateWithReplacements( 
       MessageType type,
       string code,
       params object[] replacementStrings
    )

    Parameters

    type
    code
    replacementStrings
    Remarks
    This method uses the message resource string associated with the code, and replaces substitution tokens in the string with the values provided in the replacementStrings (using String.Format).
    See Also