共用方式為


SPLocaleCollection class

表示SPLocale物件的集合。

Inheritance hierarchy

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

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

Syntax

'宣告
Public Class SPLocaleCollection _
    Inherits SPBaseCollection
'用途
Dim instance As SPLocaleCollection
public class SPLocaleCollection : SPBaseCollection

備註

您可以使用SPRegionalSettings類別的Locales屬性,傳回站台的地區設定的集合。

若要從集合傳回單一的地區設定中使用索引子。例如,假設集合指派給一個名為myLocales變數,請使用myLocales[index] 在 [Microsoft 視覺化 C#,或myLocales(index) 在 Microsoft Visual Basic,其中index是集合中的地區設定索引編號。

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

請參閱

參照

SPLocaleCollection members

Microsoft.SharePoint namespace