Constructs a new instance of a filter to match elements in a given workset. 
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2012 
Syntax
| C# | 
|---|
|  | 
| Visual Basic | 
|---|
|  | 
| Visual C++ | 
|---|
|  | 
Parameters
- worksetId
- Type: Autodesk.Revit.DBWorksetId
 The workset id to match.
- inverted
- Type: SystemBoolean
 True if the filter should match all elements which are not in the given workset.
Exceptions
| Exception | Condition | 
|---|---|
| Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |