SPLanguageCollection.Item property
取得語言物件在集合中指定之索引處。在 [Microsoft 視覺化 C#,這個屬性會是SPLanguageCollection類別的索引子。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Default Property Item ( _
index As Integer _
) As SPLanguage
Get
'用途
Dim instance As SPLanguageCollection
Dim index As Integer
Dim value As SPLanguage
value = instance(index)
public SPLanguage this[
int index
] { get; }
參數
index
Type: System.Int32指定的索引為 32 位元整數。
Property value
Type: Microsoft.SharePoint.SPLanguage
Microsoft.SharePoint.SPLanguage 物件,表示該語言。
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | 索引超出範圍。 |