共用方式為


SPLanguageCollection class

表示SPLanguage物件的集合。

Inheritance hierarchy

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

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

Syntax

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

備註

您可以使用SPRegionalSettings類別的InstalledLanguagesGlobalInstalledLanguages屬性, Microsoft SharePoint Foundation部署中傳回語言的集合。

若要從集合傳回單一語言使用索引子。例如,假設集合指派給變數,名為myLanguages,使用在 C# 的myLanguages[index]或 Visual Basic,其中index是索引數字的集合中的語言物件中的myLanguages(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.

請參閱

參照

SPLanguageCollection members

Microsoft.SharePoint namespace