IAddFolderCmd Interface

The AddFolderCmd interface is used to initialize the data contained in the AddFolder command component, which launches the FileNet Workplace Add Folder Wizard to allow the user to add a folder to an object store. Using this interface, the client application can customize the dialog title, as well as define XML properties and class behavior for the folder, the object store to contain the folder, and the display name and ID of the parent folder, if any.

After the AddFolder command has been executed by calling IAppIntCmd::Invoke, an AddFolder response component is returned. The response component contains specific AddFolder command data that is accessible through the IAddFolderRsp interface.

COM Class ID

coclass AddFolderCmd {
[default] interface IAddFolderCmd;
interface IAppIntCmd;
};

Reference

DLL FnAppIntAddFolderCmd.dll
See Also IAddFolderRsp Interface

Methods

The IAddFolderCmd interface defines one method:

Method Description
Initialize

Allows the specification of the dialog title, the XML properties and class behavior for the folder, the object store to contain the folder, and the display name and ID of the parent folder, if any.

Example

The following is a fragment from the complete example for the AddFolder command.

   ...
   // Instantiate the custom AddFolder command component
   IAddFolderCmdPtr spIAddFolderCmd;
hResult = spIAddFolderCmd.CreateInstance(__uuidof(AddFolderCmd));
if (FAILED(hResult)) {
std::cout << "Could not create the AddFolder command component.\n"; _ASSERTE(0);
} ...