WorkflowDeploymentService.PackageDefinitionFolder method

Packages a workflow folder into a SharePoint solution package (.wsp file) and saves the package to the Site Assets library.

Namespace:  Microsoft.SharePoint.WorkflowServices
Assembly:  Microsoft.SharePoint.WorkflowServicesBase (in Microsoft.SharePoint.WorkflowServicesBase.dll)

Syntax

'Declaration
Protected Function PackageDefinitionFolder ( _
    folder As SPFolder, _
    packageDefaultFilename As String, _
    packageTitle As String, _
    packageDescription As String, _
    assetLibrary As SPList, _
    configuration As Dictionary(Of String, String) _
) As String
'Usage
Dim folder As SPFolder
Dim packageDefaultFilename As String
Dim packageTitle As String
Dim packageDescription As String
Dim assetLibrary As SPList
Dim configuration As Dictionary(Of String, String)
Dim returnValue As String

returnValue = Me.PackageDefinitionFolder(folder, _
    packageDefaultFilename, packageTitle, _
    packageDescription, assetLibrary, _
    configuration)
protected string PackageDefinitionFolder(
    SPFolder folder,
    string packageDefaultFilename,
    string packageTitle,
    string packageDescription,
    SPList assetLibrary,
    Dictionary<string, string> configuration
)

Parameters

  • packageDefaultFilename
    Type: System.String

    The default filename to choose for the new package.

  • packageDescription
    Type: System.String

    The description of the package.

Return value

Type: System.String
Returns the URL of the package file that is located in the site asset library.

Remarks

Note that this method does not activate the package.

If a package with the same name already exists in the site assets library, an integer suffix “{n}” is added to the file name. For example, a package with the filename packageDefaultFilename.wsp would have a duplicate filename altered to be packageDefaultFilename{2}.wsp and so forth.

See also

Reference

WorkflowDeploymentService class

WorkflowDeploymentService members

Microsoft.SharePoint.WorkflowServices namespace