Share via


LabelCollection class

Represents a collection of Label objects.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.Taxonomy.Generic.GenericCollection<Label>
    Microsoft.SharePoint.Taxonomy.Generic.PropertyCollection<Label>
      Microsoft.SharePoint.Taxonomy.LabelCollection

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

Syntax

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

Remarks

This class provides standard support for the IEnumerator object and ICollection object and an integer indexer through the GenericCollection base class. Additionally, it provides a string indexer based on the Value 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

LabelCollection members

Microsoft.SharePoint.Taxonomy namespace

GenericCollection<T>

PropertyCollection<T>