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