共用方式為


SPSolutionLanguagePackCollection.Add method (String, UInt32)

會為指定的方案檔案和地區設定識別碼的語言套件新增到解決方案相關聯的語言套件的集合。

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

Syntax

'宣告
Public Function Add ( _
    path As String, _
    lcid As UInteger _
) As SPSolutionLanguagePack
'用途
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
)

參數

  • path
    Type: System.String

    此語言套件的方案檔案路徑。

  • lcid
    Type: System.UInt32

    語言套件的地區設定識別碼。

傳回值

Type: Microsoft.SharePoint.Administration.SPSolutionLanguagePack
SPSolutionLanguagePack 物件。

備註

重要

使用SPSolutionLanguagePack建構函式來建立 language pack 物件不支援,並傳回NullReferenceException ,如果您嘗試實作透過建構函式建立的物件的成員。

請參閱

參照

SPSolutionLanguagePackCollection class

SPSolutionLanguagePackCollection members

Add overload

Microsoft.SharePoint.Administration namespace