다음을 통해 공유


SolutionPackage Constructor (Uri, String, String, String)

Initializes a new instance of the class with the specified site URL, source document library path, solution name, and solution ID.

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 _
)
'Usage
Dim webUrl As Uri
Dim srcDocLibRelativePath As String
Dim solutionName As String
Dim solutionId As String

Dim instance As New SolutionPackage(webUrl, _
    srcDocLibRelativePath, solutionName, _
    solutionId)
public SolutionPackage(
    Uri webUrl,
    string srcDocLibRelativePath,
    string solutionName,
    string solutionId
)

Parameters

  • webUrl
    Type: System.Uri

    The URL of the site that contains 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.

See Also

Reference

SolutionPackage Class

SolutionPackage Members

SolutionPackage Overload

Microsoft.Office.SharePoint.ClientExtensions.Publishing Namespace