SPSolutionCollection.Add Method (String)
Adds a solution with the specified solution file to the collection of solutions.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function Add ( _
path As String _
) As SPSolution
'Usage
Dim instance As SPSolutionCollection
Dim path As String
Dim returnValue As SPSolution
returnValue = instance.Add(path)
public SPSolution Add(
string path
)
Parameters
path
Type: System.StringThe location of the solution file.
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.