Share via


IElementCollection Interface

Represents a collection of feature elements.

Namespace:  Microsoft.VisualStudio.SharePoint.Features
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
Public Interface IElementCollection _
    Inherits IList(Of IElement), ICollection(Of IElement),  _
    IEnumerable(Of IElement), IEnumerable
public interface IElementCollection : IList<IElement>, 
    ICollection<IElement>, IEnumerable<IElement>, IEnumerable

The IElementCollection type exposes the following members.

Properties

  Name Description
Public property Count Gets the number of elements contained in the ICollection. (Inherited from ICollection<IElement>.)
Public property IsReadOnly Gets a value indicating whether the ICollection is read-only. (Inherited from ICollection<IElement>.)
Public property Item Gets or sets the element at the specified index. (Inherited from IList<IElement>.)

Top

Methods

  Name Description
Public method Add Adds an item to the ICollection. (Inherited from ICollection<IElement>.)
Public method AddElementFile Adds a new element file to the feature elements collection.
Public method AddElementManifest Adds a new element manifest.
Public method Clear Removes all items from the ICollection. (Inherited from ICollection<IElement>.)
Public method Contains Determines whether the ICollection contains a specific value. (Inherited from ICollection<IElement>.)
Public method CopyTo Copies the elements of the ICollection to an Array, starting at a particular Array index. (Inherited from ICollection<IElement>.)
Public method GetEnumerator Returns an enumerator that iterates through the collection. (Inherited from IEnumerable<IElement>.)
Public method IndexOf Determines the index of a specific item in the IList. (Inherited from IList<IElement>.)
Public method Insert Inserts an item to the IList at the specified index. (Inherited from IList<IElement>.)
Public method Remove Removes the first occurrence of a specific object from the ICollection. (Inherited from ICollection<IElement>.)
Public method RemoveAt Removes the IList item at the specified index. (Inherited from IList<IElement>.)

Top

See Also

Reference

Microsoft.VisualStudio.SharePoint.Features Namespace