Share via


SPSolutionLanguagePackCollection.Add method (String, UInt32)

Adds a language pack with the specified solution file and locale identifier to the collection of language packs associated with a solution.

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

Syntax

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

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

Parameters

  • path
    Type: System.String

    The path to the solution file for this language pack.

  • lcid
    Type: System.UInt32

    The locale identifier for the language pack.

Return value

Type: Microsoft.SharePoint.Administration.SPSolutionLanguagePack
An SPSolutionLanguagePack object.

Remarks

Important

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

See also

Reference

SPSolutionLanguagePackCollection class

SPSolutionLanguagePackCollection members

Add overload

Microsoft.SharePoint.Administration namespace