다음을 통해 공유


RemoveRootNode Method

Topic Last Modified: 2006-06-13

The RemoveRootNode method removes a root node and its hierarchy from the TreeView control.

Applies To

EXTV Interface

Syntax

Function RemoveRootNode(    ByVal URL As String)
HRESULT RemoveRootNode
(
        BSTR URL
);

Parameters

  • URL
    A valid root URL to a root node. This URL must be UTF-encoded or derived from a TNode object.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This method only removes the root node from the TreeView control; it does not remove resources from the Exchange store.

Example

The following example uses a TNode object to get the root node's URL to remove the root node.


Dim tn As TNode
Set tn = EXTV1.GetSelectedNode
EXTV1.RemoveRootNode tn.RootUrl