다음을 통해 공유


SPDeploymentErrorEventArgs Constructor

Creates a new instance of the SPDeploymentErrorEventArgs class and provides error and deployment object data.

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

Syntax

'Declaration
Public Sub New ( _
    errorType As SPDeploymentErrorType, _
    deployObject As SPDeploymentObject, _
    errorMessage As String, _
    recommendation As String _
)
'Usage
Dim errorType As SPDeploymentErrorType
Dim deployObject As SPDeploymentObject
Dim errorMessage As String
Dim recommendation As String

Dim instance As New SPDeploymentErrorEventArgs(errorType, _
    deployObject, errorMessage, recommendation)
public SPDeploymentErrorEventArgs(
    SPDeploymentErrorType errorType,
    SPDeploymentObject deployObject,
    string errorMessage,
    string recommendation
)

Parameters

  • errorMessage
    Type: System.String

    Provides the message that is associated with the error.

  • recommendation
    Type: System.String

    Provides the reocmmended action for the specified error.

See Also

Reference

SPDeploymentErrorEventArgs Class

SPDeploymentErrorEventArgs Members

Microsoft.SharePoint.Deployment Namespace