MoveResource Method
Topic Last Modified: 2006-06-13
The MoveResource method moves a folder to a location where it becomes the child folder of a destination folder.
Applies To
Syntax
Function MoveResource( URLSource As String,
URLNewParent As String,
NewChildName As String)
HRESULT MoveResource
(
BSTR URLSource,
BSTR URLNewParent,
BSTR NewChildName
);
Parameters
- URLSource
The URL of the folder to move. This URL must be Unicode transformation format (UTF) encoded or derived from a TNode object.
- URLNewParent
The folder that contains the moved folder.
- NewChildName
The location name of the moved folder.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
This method moves resources in the Exchange store.
Example
The following example moves the selected node to be a child folder under the root.
Dim tn As TNode
Set tn = EXTV1.GetSelectedNode
If tn.url <> tn.RootUrl Then
EXTV1.MoveResource tn.url, tn.RootUrl, tn.DisplayName
End If