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.StringThe title of the report message.
severity
Type: Microsoft.SharePoint.Publishing.Administration.MessageSeverityThe MessageSeverity object that is associated with this report message.
phase
Type: System.StringThe job phase in which this message occurs.
description
Type: System.StringThe report message text.
recommendation
Type: System.StringA string that contains this message recommendation.
objectName
Type: System.StringThe name of the object with which this message is associated.