Share via


RemoveRoot Method

RemoveRoot 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 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.

Applies To

ExchangeTreeViewControl Class

Syntax

Visual Basic .NET

Sub RemoveRoot(ByVal uri As String)

C#

void RemoveRoot(string uri);

Parameters

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

Return Value

Returns VOID.

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.

Examples

Visual Basic .NET

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

myTreeViewControl.RemoveRoot("https://server/public/")

C#

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

myTreeViewControl.RemoveRoot("https://server/public/");

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.