Language 类

Represents a natural language used within the context of Microsoft SharePoint Foundation.

继承层次结构

System.Object
  Microsoft.SharePoint.Client.ClientValueObject
    Microsoft.SharePoint.Client.Language

命名空间:  Microsoft.SharePoint.Client
程序集:   Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)

语法

声明
Public Class Language _
    Inherits ClientValueObject
用法
Dim instance As Language
public class Language : ClientValueObject

备注

Use the GlobalServerLanguage or ServerLanguage property of the SPRegionalSettings class to return a single SPLanguage object. Otherwise, use the GlobalInstalledLanguages or InstalledLanguages property of the SPRegionalSettings class to return the collection of languages in a deployment of SharePoint Foundation.

Use an indexer to return a single language from the collection. For example, if the collection is assigned to a variable named myLanguages, use myLanguages[index] in C#, or myLanguages(index) in Visual Basic, where index is the index number of the language in the collection.

Use the Language property of the SPWeb class to return the locale identifier (LCID) of a language.

线程安全性

该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。

另请参阅

引用

Language 成员

Microsoft.SharePoint.Client 命名空间