The GetObjectStoreItem method 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 via the AddFolder command. This method provides access to the information specified through the IObjectStoreItem interface.
IObjectStoreItemPtr spIObjectStoreFolderAdded = spIAddFolderRsp->GetObjectStoreItem();
...
// 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;
...