SPUserSolutionCollection.Add method

Adds a solution in the site solutions gallery.

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

Syntax

'Declaration
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)
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