SolutionPackage Constructor (Uri, String, String, String, Version)
Initializes a new instance of the class with the specified site URL, source document library path, solution name, solution ID, and solution version.
Namespace: Microsoft.Office.SharePoint.ClientExtensions.Publishing
Assembly: Microsoft.Office.SharePoint.ClientExtensions (in Microsoft.Office.SharePoint.ClientExtensions.dll)
Syntax
'Declaration
Public Sub New ( _
webUrl As Uri, _
srcDocLibRelativePath As String, _
solutionName As String, _
solutionId As String, _
version As Version _
)
'Usage
Dim webUrl As Uri
Dim srcDocLibRelativePath As String
Dim solutionName As String
Dim solutionId As String
Dim version As Version
Dim instance As New SolutionPackage(webUrl, _
srcDocLibRelativePath, solutionName, _
solutionId, version)
public SolutionPackage(
Uri webUrl,
string srcDocLibRelativePath,
string solutionName,
string solutionId,
Version version
)
Parameters
webUrl
Type: System.UriThe URL of the site containing the solution and where the package is to be published.
srcDocLibRelativePath
Type: System.StringThe relative URL of the document library containing the client-ready artifacts. The artifacts should contain a file named oir.config.
solutionName
Type: System.StringThe name of the solution.
solutionId
Type: System.StringThe solution identifier (ID). This should be the same as the solution ID in the oir.config file.
version
Type: System.VersionThe version of the solution.
Examples
Code Snippet: Create a BCS Solution Package for a Declarative Solution
See Also
Reference
Microsoft.Office.SharePoint.ClientExtensions.Publishing Namespace