Share via


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)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As SPLanguage
    Get
'Usage
Dim instance As SPLanguageCollection
Dim index As Integer
Dim value As SPLanguage

value = instance(index)
public SPLanguage this[
    int index
] { get; }

Parameters

  • index
    Type: System.Int32

    A 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.

See also

Reference

SPLanguageCollection class

SPLanguageCollection members

Microsoft.SharePoint namespace