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