Share via


SPUserSolutionCollection.Add Method

Adds a solution in the site solutions gallery.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online

Syntax

'Declaration
<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)> _
Public Function Add ( _
    solutionGalleryItemId As Integer _
) As SPUserSolution
'Usage
Dim instance As SPUserSolutionCollection
Dim solutionGalleryItemId As Integer
Dim returnValue As SPUserSolution

returnValue = instance.Add(solutionGalleryItemId)
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
public SPUserSolution Add(
    int solutionGalleryItemId
)

Parameters

  • solutionGalleryItemId
    Type: System.Int32

    The item ID of the solutions gallery item to add.

Return Value

Type: Microsoft.SharePoint.SPUserSolution
The sandboxed solution.

See Also

Reference

SPUserSolutionCollection Class

SPUserSolutionCollection Members

Microsoft.SharePoint Namespace