TermCollection class

Represents collection of Term objects.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Taxonomy.Generic.GenericCollection<Term>
    Microsoft.SharePoint.Taxonomy.Generic.IndexedCollection<Term>
      Microsoft.SharePoint.Taxonomy.Generic.TaxonomyItemCollection<Term>
        Microsoft.SharePoint.Taxonomy.TermCollection

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class TermCollection _
    Inherits TaxonomyItemCollection(Of Term)
'Usage
Dim instance As TermCollection
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class TermCollection : TaxonomyItemCollection<Term>

Remarks

This class provides standard support for the IEnumerator interface and the ICollection interface and an integer indexer through the GenericCollection base class. In addition it provides a string indexer based on the default Label object of the Term object and a GUID indexer based on the Id() property

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

TermCollection members

Microsoft.SharePoint.Taxonomy namespace

GenericCollection<T>

TaxonomyItemCollection<T>