SolutionRegistry.GetCurrentSolutionVersion Method
Returns the version of the currently installed data-only SharePoint solution using the specified solution ID.
Namespace: Microsoft.Office.BusinessApplications.Runtime.Deployment
Assembly: Microsoft.Office.BusinessApplications.Runtime (in Microsoft.Office.BusinessApplications.Runtime.dll)
Syntax
'Declaration
Public Shared Function GetCurrentSolutionVersion ( _
solutionId As String _
) As String
'Usage
Dim solutionId As String
Dim returnValue As String
returnValue = SolutionRegistry.GetCurrentSolutionVersion(solutionId)
public static string GetCurrentSolutionVersion(
string solutionId
)
Parameters
- solutionId
Type: System.String
The solution identifier of a data-only solution. For an offline external list, this specified the list ID.
Return Value
Type: System.String
The current version of the specified solution or a null reference (Nothing in Visual Basic) if the specified solution is not installed.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The solutionId is a null reference (Nothing in Visual Basic). |
InvalidOperationException | The specified solution is not a data-only solution. |
See Also
Reference
Microsoft.Office.BusinessApplications.Runtime.Deployment Namespace