SPDeploymentErrorEventArgs 构造函数
创建SPDeploymentErrorEventArgs类的一个新实例,并提供错误和部署对象数据。
命名空间: Microsoft.SharePoint.Deployment
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Sub New ( _
errorType As SPDeploymentErrorType, _
deployObject As SPDeploymentObject, _
errorMessage As String, _
recommendation As String _
)
用法
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
)
参数
deployObject
类型:Microsoft.SharePoint.Deployment.SPDeploymentObject指定引发错误SPDeploymentObject 。
errorMessage
类型:System.String提供与该错误关联的消息。
recommendation
类型:System.String提供指定错误的 reocmmended 操作。