SPSolutionLanguagePackCollection.Add 方法 (String, UInt32)

与解决方案关联的语言包的集合中添加语言包的指定的解决方案文件和区域设置标识符。

命名空间:  Microsoft.SharePoint.Administration
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
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
    类型:System.String

    此语言包的解决方案文件的路径。

  • lcid
    类型:System.UInt32

    语言包的区域设置标识符。

返回值

类型:Microsoft.SharePoint.Administration.SPSolutionLanguagePack
一个SPSolutionLanguagePack对象。

备注

重要信息注释重要信息

使用SPSolutionLanguagePack的构造函数来创建语言包对象不支持,如果您试图实现通过构造函数创建的对象的成员,则返回NullReferenceException 。

另请参阅

引用

SPSolutionLanguagePackCollection 类

SPSolutionLanguagePackCollection 成员

Add 重载

Microsoft.SharePoint.Administration 命名空间