| Visual Basic (Declaration) | |
|---|---|
Public MustOverride Sub Clear() | |
| C# | |
|---|---|
public abstract void Clear() | |
| C++/CLI | |
|---|---|
public: abstract void Clear(); | |
| Exception | Description |
|---|---|
| System.InvalidOperationException | Thrown when a measurement still requires a Mode. |
Measurements that do not require a Mode are dissociated before the collection is cleared. The collection cannot be cleared while any measurement still requires a Mode; change that measurement's type, or remove the measurement, before clearing.
Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)