RemoveAllRoots Method
RemoveAllRoots Method
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release. The RemoveAllRoots method removes all root nodes from the TreeView control.
Applies To
Syntax
Visual Basic .NET
Sub RemoveAllRoots()
C#
void RemoveAllRoots()
Return Value
Returns VOID.
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.
Examples
Visual Basic .NET
In the following example, all nodes are removed from the TreeView control.
myTreeViewControl.RemoveAllRoots()
C#
In the following example, all nodes are removed from the TreeView control.
myTreeViewControl.RemoveAllRoots();
Send us your feedback about the Microsoft Exchange Server 2003 SDK.
Build: June 2007 (2007.618.1)
© 2003-2006 Microsoft Corporation. All rights reserved. Terms of use.