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
status
Type: Microsoft.SharePoint.Deployment.SPDeploymentStatusProvides a SPDeploymentStatus enumeration value that specifies the current status of the deployment operation.
objectsProcessed
Type: System.Int32Integer that specifyies the number of deployment objects that are currently processed.
objectsTotal
Type: System.Int32Integer that specifies the total number of deployment objects in the current deployment operation.
tempDirectoryPath
Type: System.StringString representation of the fully qualified file path to the temporary directory where the uncompressed contents of the deployment package files are stored.
rootObjects
Type: Microsoft.SharePoint.Deployment.SPImportObjectCollectionSpecifies the SPImportObjectCollection that contains the root objects - that is, objects for which there are no parent objects exported.