Condividi tramite


SPSolutionOperationResult Enumeration

Provides enumeration members that are used to represent the result of the last operation. This enumeration is additionally used in the IsOperationResultError method.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Enumeration SPSolutionOperationResult
'Usage
Dim instance As SPSolutionOperationResult
public enum SPSolutionOperationResult

Members

Member name Description
NoOperationPerformed No operation was performed on this solution.
RetractionSucceeded The solution files were successfully retracted from the computers.
DeploymentSucceeded The solution files were successfully deployed to the computers.
RetractionWarningsOccurred Some warnings occurred during the retraction of the solution files from the computers.
DeploymentWarningsOccurred One or more warnings occurred during the deployment of the solution files to the computers.
DeploymentFailedCabExtraction An error occurred during the extraction of the cabinet file in the solution.
DeploymentSolutionValidationFailed The solution could not be validated. Invalid solution.
DeploymentFailedFileCopy A file could not be copied during deployment.
DeploymentFailedFeatureInstall The files were successfully copied but a feature could not be installed in the system.
RetractionFailedCouldNotRemoveFile A file could not be removed from the computer during the retraction process.
RetractionFailedCouldNotRemoveFeature A feature could not be uninstalled during the retraction process.
DeploymentFailedCallout The deployment callout function returned an error code.

Remarks

Note that the poorest result is always stored in the LastOperationStatus property. This value is updated from multiple computers. In other words, if an operation fails on one computer, status should not be updated to a value that indicates success on another computer. This enumeration therefore includes, in order, members that indicate success, members that indicate warnings and, lastly, members that indicate errors.

The value of the last solution deployment or retraction operation must be synchronized with the user interface (UI). This is because the UI uses this value to generate error messages.

See Also

Reference

Microsoft.SharePoint.Administration Namespace