SPFeatureQueryResultCollection class
表示可列舉的SPFeature物件集合。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.SPFeatureQueryResultCollection
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public NotInheritable Class SPFeatureQueryResultCollection _
Implements IEnumerator(Of SPFeature), IDisposable, _
IEnumerator, IEnumerable(Of SPFeature), IEnumerable
'用途
Dim instance As SPFeatureQueryResultCollection
public sealed class SPFeatureQueryResultCollection : IEnumerator<SPFeature>,
IDisposable, IEnumerator, IEnumerable<SPFeature>, IEnumerable
備註
SPSite、 SPContentDatabase、 SPWebApplication、 SPWebService和SPSite類別的QueryFeatures方法會傳回這個型別的執行個體。
若要確保有效地使用伺服器記憶體,由SPFeature物件的所有物件受都限於處置時就會呼叫IEnumerator.MoveNext()方法。例如,如果SPFeature是範圍的Site或Web,然後Parent屬性就會包含可能會經過處置的呼叫MoveNext方法時的SPSite或SPWeb物件。您不應使用特定功能支援的物件,因為它們可能不正確呼叫MoveNext方法後。
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.