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
- title
Type: System.String
The title of the report message.
- severity
Type: Microsoft.SharePoint.Publishing.Administration.MessageSeverity
The MessageSeverity object that is associated with this report message.
- phase
Type: System.String
The job phase in which this message occurs.
- description
Type: System.String
The report message text.
- 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.