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
errorType
Type: Microsoft.SharePoint.Deployment.SPDeploymentErrorTypeSpecifies the SPDeploymentErrorType value.
deployObject
Type: Microsoft.SharePoint.Deployment.SPDeploymentObjectSpecifies the SPDeploymentObject that caused the error.
errorMessage
Type: System.StringProvides the message that is associated with the error.
recommendation
Type: System.StringProvides the reocmmended action for the specified error.
See Also
Reference
SPDeploymentErrorEventArgs Class