SPUtility.GetUploadedSolutionOp Method
Retrieves the solution operation (op) code for a newly uploaded solution.
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Shared Function GetUploadedSolutionOp ( _
site As SPSite, _
solutionId As String, _
solutionHash As String _
) As String
'Usage
Dim site As SPSite
Dim solutionId As String
Dim solutionHash As String
Dim returnValue As String
returnValue = SPUtility.GetUploadedSolutionOp(site, _
solutionId, solutionHash)
public static string GetUploadedSolutionOp(
SPSite site,
string solutionId,
string solutionHash
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteThe SPSite object that represents the SharePoint Services Web site.
solutionId
Type: System.StringThe identifier that was specified in the manifest file for the solution.
solutionHash
Type: System.StringA string that identifies the solution hash.
Return Value
Type: System.String
A string that indicates the op code for the solution. The op code value can be one of the following: ACT, UPG, or null.
Remarks
An op code of ACT indicates that there is no active solution that has the same identifier. An op code of UPG indicates that there is an active solution that has the same identifier but uses a different hash.