SPLocaleCollection 类

代表SPLocale对象的集合。

继承层次结构

System.Object
  Microsoft.SharePoint.Administration.SPAutoSerializingObject
    Microsoft.SharePoint.SPBaseCollection
      Microsoft.SharePoint.SPLocaleCollection

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

语法

声明
Public Class SPLocaleCollection _
    Inherits SPBaseCollection
用法
Dim instance As SPLocaleCollection
public class SPLocaleCollection : SPBaseCollection

备注

使用SPRegionalSettings类的Locales属性可返回网站的区域设置的集合。

使用索引器从集合中返回单个区域设置。例如,假定集合分配给名为myLocales的变量,使用 Microsoft Visual Basic 中,其中index是集合中的区域设置的索引号的myLocales[index] 在 Microsoft Visual C#,或myLocales(index)。

线程安全性

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

另请参阅

引用

SPLocaleCollection 成员

Microsoft.SharePoint 命名空间