SPLanguageCollection.Item Property
Gets the language object at the specified index in the collection. In Microsoft Visual C#, this property is the indexer for the SPLanguageCollection class.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public ReadOnly Property Item ( _
index As Integer _
) As SPLanguage
Get
'Usage
Dim instance As SPLanguageCollection
Dim index As Integer
Dim value As SPLanguage
value = instance.Item(index)
public SPLanguage this[
int index
] { get; }
Parameters
index
Type: System.Int32A 32-bit integer that specifies the index.
Property Value
Type: Microsoft.SharePoint.SPLanguage
An Microsoft.SharePoint.SPLanguage object that represents the language.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The index is out of range. |