다음을 통해 공유


CreateResource Method

Topic Last Modified: 2006-06-13

The CreateResource method creates a resource as a subfolder in the Exchange store and adjusts the TreeView control hierarchy to reflect the change.

Applies To

EXTV Interface

Syntax

Function CreateResource(    ByVal parentURL As String,
        ByVal name As String)
HRESULT CreateResource
(
        BSTR parentURL,
        BSTR name
);

Parameters

  • parentURL
    The URL of a folder that contains the new subfolder. This URL must be UTF-encoded or derived from a TNode object.
  • name
    The name of the new folder.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This method creates resources in the Exchange store.

Example

The following example uses a TNode object to get the selected node's URL, prompts for the name, and creates the folder.


Dim Nd As TNode
Dim strF As String
Set Nd = EXTV1.GetSelectedNode
strF = InputBox("Enter folder name:")
EXTV1.CreateResource Nd.url, strF