Share via


IndexedCollection<T>.Item Property (String)

Gets a string indexer for this collection.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As String _
) As T
    Get
'Usage
Dim instance As IndexedCollection
Dim index As String
Dim value As T

value = instance(index)
public T this[
    string index
] { get; }

Parameters

  • index
    Type: System.String

    String indexer to use for this collection

Property Value

Type: T
The item in the collection at the specified index

Exceptions

Exception Condition
ArgumentOutOfRangeException

Remarks

The string indexer matches against these properties for the derived collections.

  • GroupCollection - Group.Name

  • TermCollection - Term's default Label

  • TermSetCollection - TermSet.Name

Integer or GUID indexers are optimized, and their use is preferred.

See Also

Reference

IndexedCollection<T> Class

IndexedCollection<T> Members

Item Overload

Microsoft.SharePoint.Taxonomy.Generic Namespace