SPFeatureQueryResultCollection class

Represents an enumerable collection of SPFeature objects.


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

public sealed class SPFeatureQueryResultCollection : IEnumerator<SPFeature>, 
	IDisposable, IEnumerator, IEnumerable<SPFeature>, IEnumerable

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.

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