Share via


SPSolutionCollection.Add method (String, UInt32)

Adds a solution with the specified solution file and locale identifier to the collection of solutions.

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

Syntax

'Declaration
Public Function Add ( _
    path As String, _
    lcid As UInteger _
) As SPSolution
'Usage
Dim instance As SPSolutionCollection
Dim path As String
Dim lcid As UInteger
Dim returnValue As SPSolution

returnValue = instance.Add(path, lcid)
public SPSolution Add(
    string path,
    uint lcid
)

Parameters

  • lcid
    Type: System.UInt32

    The locale identifier for this solution.

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