Share via


ReportMessage Constructor (String, MessageSeverity, String, String, String, String)

Constructs a new ReportMessageobject with one or more of the following parameters defined.

Namespace:  Microsoft.SharePoint.Publishing.Administration
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Sub New ( _
    title As String, _
    severity As MessageSeverity, _
    phase As String, _
    description As String, _
    recommendation As String, _
    objectName As String _
)
'Usage
Dim title As String
Dim severity As MessageSeverity
Dim phase As String
Dim description As String
Dim recommendation As String
Dim objectName As String

Dim instance As New ReportMessage(title, severity, _
    phase, description, recommendation, _
    objectName)
public ReportMessage(
    string title,
    MessageSeverity severity,
    string phase,
    string description,
    string recommendation,
    string objectName
)

Parameters

  • phase
    Type: System.String

    The job phase in which this message occurs.

  • recommendation
    Type: System.String

    A string that contains this message recommendation.

  • objectName
    Type: System.String

    The name of the object with which this message is associated.

See Also

Reference

ReportMessage Class

ReportMessage Members

ReportMessage Overload

Microsoft.SharePoint.Publishing.Administration Namespace

ReportMessage