다음을 통해 공유


DeleteResource Method

Topic Last Modified: 2006-06-13

The DeleteResource method deletes a folder in the Exchange store and adjusts the TreeView control hierarchy to reflect the change.

Applies To

EXTV Interface

Syntax

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

Parameters

  • URL
    The URL of a folder to delete. This URL must be Unicode transformation format (UTF) encoded or derived from a TNode object.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This method deletes resources in the Exchange store.

Example

The following example uses a TNode object to get the selected node's URL and deletes the folder.


Dim Nd As TNode
Set Nd = EXTV1.GetSelectedNode
EXTV1.DeleteResource Nd.url