| Visual Basic (Declaration) | |
|---|---|
Public Overrides Sub Clear() | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As PartList instance.Clear() | |
| C# | |
|---|---|
public override void Clear() | |
| Managed Extensions for C++ | |
|---|---|
public: void Clear(); override | |
| C++/CLI | |
|---|---|
public: void Clear(); override | |
This method removes all objects in this collection from the parent collection and this collection. This method is O(n2) in time, so it is recommended that the parent’s Clear() be used instead where possible.
Target Platforms: Microsoft .NET Framework 2.0