SPDeploymentEventArgs constructor (SPDeploymentStatus, Int32, Int32, String, SPImportObjectCollection)

Creates a new instance of the SPDeploymentEventArgs class with the deployment status, information about object numbers, and directory path. This method also adds the collection of root objects to the deployment package.

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

Syntax

'Declaration
Public Sub New ( _
    status As SPDeploymentStatus, _
    objectsProcessed As Integer, _
    objectsTotal As Integer, _
    tempDirectoryPath As String, _
    rootObjects As SPImportObjectCollection _
)
'Usage
Dim status As SPDeploymentStatus
Dim objectsProcessed As Integer
Dim objectsTotal As Integer
Dim tempDirectoryPath As String
Dim rootObjects As SPImportObjectCollection

Dim instance As New SPDeploymentEventArgs(status, _
    objectsProcessed, objectsTotal, _
    tempDirectoryPath, rootObjects)
public SPDeploymentEventArgs(
    SPDeploymentStatus status,
    int objectsProcessed,
    int objectsTotal,
    string tempDirectoryPath,
    SPImportObjectCollection rootObjects
)

Parameters

  • objectsProcessed
    Type: System.Int32

    Integer that specifyies the number of deployment objects that are currently processed.

  • objectsTotal
    Type: System.Int32

    Integer that specifies the total number of deployment objects in the current deployment operation.

  • tempDirectoryPath
    Type: System.String

    String representation of the fully qualified file path to the temporary directory where the uncompressed contents of the deployment package files are stored.

See also

Reference

SPDeploymentEventArgs class

SPDeploymentEventArgs members

SPDeploymentEventArgs overload

Microsoft.SharePoint.Deployment namespace