SPLanguage class
代表 wssnoverslongMicrosoft SharePoint Foundation 內容中使用的自然語言。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.SPLanguage
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Class SPLanguage
'用途
Dim instance As SPLanguage
public class SPLanguage
備註
使用SPRegionalSettings類別的GlobalServerLanguage或ServerLanguage屬性可傳回單一SPLanguage物件。否則請使用SPRegionalSettings類別的GlobalInstalledLanguages或InstalledLanguages屬性可傳回SharePoint Foundation的部署中的語言集合。
若要從集合中傳回單一語言使用索引器。例如,若集合已指派給變數myLanguages,使用myLanguages[index]以 C# 或 Visual Basic,其中index是索引編號集合中之語言中的myLanguages(index) 。
使用SPWeb類別之Language屬性可傳回的語言區域設定識別碼 (LCID)。
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.