GetRootNode Method
Topic Last Modified: 2006-06-13
The GetRootNode method obtains a root node object from a valid root URL.
Applies To
Syntax
Function GetRootNode( ByVal URL As String) As RootNode
HRESULT GetRootNode
(
BSTR URL,
_RootNode** pVal
);
Parameters
- URL
A valid root URL to a root node. This URL must be Unicode transformation format (UTF) encoded or derived from a TNode object.
- pVal
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
This method does not extract a node from a URL pointing deeper in the hierarchy. The root node must exist in the RootNodes collection.
Example
The following example uses a TNode object to get the selected node's URL, obtains the root URL, and creates a root node object.
Dim rn As RootNode
Dim tn As TNode
Set tn = EXTV1.GetSelectedNode
Set rn = EXTV1.GetRootNode(tn.RootUrl)
MsgBox rn.url