IAddFolderRsp Interface

The IAddFolderRsp interface is used to interact with specific AddFolder response parameters contained in the in-process COM Server AddFolder response component, which is returned when the AddFolder command is invoked. This interface enables the client application to obtain the item type, version ID and version series ID of the folder that was added to the object store.

Client applications may also interact with the AddFolder response component via the IAppIntRsp interface. For more information about working with command and response components and their COM interfaces, see Command and Response components.

COM Class ID

coclass AddFolderRsp {
[default] interface IAddFolderRsp;
interface IAppIntRsp;
};

Reference

DLL FnAppIntAddFolderCmd.dll
See Also IAddFolderCmd Interface

Methods

The IAddFolderRsp interface defines one method:

Method Description
GetObjectStoreItem

Provides the client application with access to the item type, version ID and version series ID of the folder that was added to the object store.

Example

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

   ...
   // Obtain the specific response information contained in the custom AddFolderRsp component
   IAddFolderRspPtr spIAddFolderRsp(spIAppIntRsp);
_ASSERTE(spIAddFolderRsp != 0);
IObjectStoreItemPtr spIObjectStoreFolderAdded = spIAddFolderRsp->GetObjectStoreItem();
_ASSERTE(spIObjectStoreFolderAdded != 0);
std::cout << "ObjectStoreName=" << (LPCSTR) spIObjectStoreFolderAdded->GetObjectStoreName() << std::endl;
std::cout << "ItemType=" << (LPCSTR) CItemTypeConverter::EnumToBSTR(spIObjectStoreFolderAdded->GetItemType()) << std::endl;
std::cout << "VersionSeriesID=" << (LPCSTR) spIObjectStoreFolderAdded->GetVersionSeriesID() << std::endl;
std::cout << "VersionID=" << (LPCSTR) spIObjectStoreFolderAdded->GetVersionID() << std::endl; ...