SPLanguageSettings.GetGlobalLanguages 方法
获取基于兼容性级别的全球语言。兼容性级别是主要的 SharePoint 版本,将查询已安装的语言。IsValidCompatibilityLevel 由确定的有效版本。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Shared Function GetGlobalLanguages ( _
compatibilityLevel As Integer _
) As SPLanguageCollection
用法
Dim compatibilityLevel As Integer
Dim returnValue As SPLanguageCollection
returnValue = SPLanguageSettings.GetGlobalLanguages(compatibilityLevel)
public static SPLanguageCollection GetGlobalLanguages(
int compatibilityLevel
)
参数
compatibilityLevel
类型:System.Int32查询已安装的语言的主要 SharePoint 版本的值。
返回值
类型:Microsoft.SharePoint.SPLanguageCollection