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
)

参数

  • errorMessage
    类型:System.String

    提供与该错误关联的消息。

  • recommendation
    类型:System.String

    提供指定错误的 reocmmended 操作。

另请参阅

引用

SPDeploymentErrorEventArgs 类

SPDeploymentErrorEventArgs 成员

Microsoft.SharePoint.Deployment 命名空间