IAddRsp::GetObjectStoreItem

The GetObjectStoreItem method 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 via the Add command. This method provides access to the information specified through the IObjectStoreItem interface.

IObjectStoreItemPtr spIObjectStoreItemAdded = spIAddRsp->GetObjectStoreItem();
Parameters
None.
Results
Returns a pointer to an IObjectStoreItem interface, which contains information about the item that was added to the object store via the Add command.
Sample
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; ...