RemoveAllRoots Method
Topic Last Modified: 2007-03-21
The RemoveAllRoots method removes all root nodes from the TreeView control. The RemoveAllRoots method applies to the ExchangeTreeViewControl Class.
Syntax
Sub RemoveAllRoots()
void RemoveAllRoots();
Property Value/Return Value
Returns VOID.
Exceptions
Remarks
This method only removes root nodes from the TreeView control and does not affect any resources in the Exchange store.
The RemoveAllRoots method will return any appropriate error information in a ControlError Event if the ErrorsReturnedNotDisplayed Property is set to True, or in a message box if it is set to False.
Example
In the following Visual Basic .NET example, all nodes are removed from the TreeView control.
myTreeViewControl.RemoveAllRoots()
In the following C# example, all nodes are removed from the TreeView control.
myTreeViewControl.RemoveAllRoots();