다음을 통해 공유


SolutionPackage.GenerateUnsigned Method

Generates the package without signing.

Namespace:  Microsoft.Office.SharePoint.ClientExtensions.Publishing
Assembly:  Microsoft.Office.SharePoint.ClientExtensions (in Microsoft.Office.SharePoint.ClientExtensions.dll)

Syntax

'Declaration
Public Function GenerateUnsigned ( _
    targetDocLibRelativePath As String _
) As String
'Usage
Dim instance As SolutionPackage
Dim targetDocLibRelativePath As String
Dim returnValue As String

returnValue = instance.GenerateUnsigned(targetDocLibRelativePath)
public string GenerateUnsigned(
    string targetDocLibRelativePath
)

Parameters

  • targetDocLibRelativePath
    Type: System.String

    The path of the document library where the package should be published. This path is relative to the site URL.

Return Value

Type: System.String
The solution package URL string.

Exceptions

Exception Condition
PublishException

This exception is thrown if any of the following conditions applies:

  1. The site, which was provided in the constructor, does not exist.

  2. The "Offline Synchronization for External Lists" SharePoint feature is not active for the SharePoint site.

  3. The source document library path specified in the constructor or the target document library path specified in this method is a null reference (Nothing in Visual Basic).

  4. The source document library specified in the constructor or the target document library does not exist on the SharePoint site.

  5. The source document library is the same as the target document library.

  6. The oir.config file is not included in the source document library.

Examples

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

See Also

Reference

SolutionPackage Class

SolutionPackage Members

Microsoft.Office.SharePoint.ClientExtensions.Publishing Namespace