다음을 통해 공유


RemoveRoot Method

Topic Last Modified: 2006-11-30

The RemoveRoot method removes an individual root node from the TreeView control. The specified Uniform Resource Identifier (URI) must correspond to a root node in the TreeView control for that root node to be removed. The RemoveRoot method applies to the ExchangeTreeViewControl Class.

Syntax

Sub RemoveRoot(ByVal uri As String)
void RemoveRoot(string uri);

Parameters

uri

The URI of a folder hierarchy in the Exchange store that corresponds to the root node to be removed.

Property Value/Return Value

Returns VOID.

Exceptions

Remarks

This method only removes a root node from the TreeView control and does not affect any resources in the Exchange store.

The RemoveRoot 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, an individual root node is removed from the TreeView control.

In the following C# example, an individual root node is removed from the TreeView control.