Aracılığıyla paylaş


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.Uri

    The URL of the site containing the solution and where the package is to be published.

  • srcDocLibRelativePath
    Type: System.String

    The relative URL of the document library containing the client-ready artifacts. The artifacts should contain a file named oir.config.

  • solutionId
    Type: System.String

    The solution identifier (ID). This should be the same as the solution ID in the oir.config file.

Examples

Code Snippet: Create a BCS Solution Package for a Declarative Solution

See Also

Reference

SolutionPackage Class

SolutionPackage Members

SolutionPackage Overload

Microsoft.Office.SharePoint.ClientExtensions.Publishing Namespace