SPFeatureQueryResultCollection class

Represents an enumerable collection of SPFeature objects.

Inheritance hierarchy

System.Object
  Microsoft.SharePoint.SPFeatureQueryResultCollection

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

Syntax

'Declaration
Public NotInheritable Class SPFeatureQueryResultCollection _
    Implements IEnumerator(Of SPFeature), IDisposable,  _
    IEnumerator, IEnumerable(Of SPFeature), IEnumerable
'Usage
Dim instance As SPFeatureQueryResultCollection
public sealed class SPFeatureQueryResultCollection : IEnumerator<SPFeature>, 
    IDisposable, IEnumerator, IEnumerable<SPFeature>, IEnumerable

Remarks

Instances of this type are returned by the QueryFeatures method of the SPSite, SPContentDatabase, SPWebApplication, SPWebService, and SPSite classes.

To ensure that server memory is used efficiently, all objects used by an SPFeature object are subject to disposal when the IEnumerator.MoveNext() method is called. For example, if the SPFeature is scoped Site or Web, then the Parent property contains an SPSite or SPWeb object that may get disposed of when the MoveNext method is called. You should not use the supporting objects for a particular feature after the MoveNext method is called because they might be invalid.

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

SPFeatureQueryResultCollection members

Microsoft.SharePoint namespace