IAddRsp Interface

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

Client applications may also interact with the Add 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 AddRsp {
[default] interface IAddRsp;
interface IAppIntRsp;
};

Reference

DLL FnAppIntAddCmd.dll
See Also IAddCmd Interface

Methods

The IAddRsp 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 item that was added to the object store.

Example

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

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