Share via


SPContentDatabaseTestResult constructor (String, Boolean, Boolean, String, String)

Initializes a new instance of the SPContentDatabaseTestResult class.

Namespace:  Microsoft.SharePoint.Upgrade
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Sub New ( _
    category As String, _
    error As Boolean, _
    upgradeBlocking As Boolean, _
    message As String, _
    remedy As String _
)
'Usage
Dim category As String
Dim error As Boolean
Dim upgradeBlocking As Boolean
Dim message As String
Dim remedy As String

Dim instance As New SPContentDatabaseTestResult(category, _
    error, upgradeBlocking, message, _
    remedy)
public SPContentDatabaseTestResult(
    string category,
    bool error,
    bool upgradeBlocking,
    string message,
    string remedy
)

Parameters

  • error
    Type: System.Boolean

    true to specify that the test result represents an error in the database; otherwise, false.

  • upgradeBlocking
    Type: System.Boolean

    true to prevent the database from being upgraded; otherwise, false.

  • message
    Type: System.String

    The description of the test result.

See also

Reference

SPContentDatabaseTestResult class

SPContentDatabaseTestResult members

SPContentDatabaseTestResult overload

Microsoft.SharePoint.Upgrade namespace