Condividi tramite


SPSolutionCollection.Add Method (SPSolution)

Adds a solution to the collection of solutions.

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

Syntax

'Declaration
Public Overrides Function Add ( _
    solution As SPSolution _
) As SPSolution
'Usage
Dim instance As SPSolutionCollection
Dim solution As SPSolution
Dim returnValue As SPSolution

returnValue = instance.Add(solution)
public override SPSolution Add(
    SPSolution solution
)

Parameters

Return Value

Type: Microsoft.SharePoint.Administration.SPSolution

Remarks

Using the SPSolution constructor to create a solution object is not supported and returns a NullReferenceException if you attempt to implement members of an object created through the constructor.

See Also

Reference

SPSolutionCollection Class

SPSolutionCollection Members

Add Overload

Microsoft.SharePoint.Administration Namespace