| Visual Basic (Declaration) | |
|---|---|
Public Overloads MustOverride Function Remove( _ ByVal item As Mode _ ) As Boolean | |
Parameters
- item
- Mode to remove from the collection.
Return Value
True, if the Mode was removed from the collection.| Exception | Description |
|---|---|
| System.InvalidOperationException | Thrown when this is the last Mode of a type that a measurement still requires. |
When another Mode of the same configuration type remains, measurements associated with item are reassociated to that remaining Mode. Removing the last Mode of a type that a measurement still requires throws System.InvalidOperationException.
Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)