RVTDocs.com
Namespace: Autodesk.Revit.DB

FilteredWorksetCollector

Class
Description:
This class is used to search, filter and iterate through a set of worksets.
Remarks:

Developers can assign a condition to filter the worksets that are returned. If no condition is applied, it attempts to access all the worksets in the document.

The collector will reset if you call another method to extract worksets. Thus, if you have previously obtained an iterator, it will be stopped and traverse no more worksets if you call another method to extract worksets.

Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.FilteredWorksetCollector
Syntax
public class FilteredWorksetCollector : IEnumerable<Workset>, 
	IDisposable