IAddFolderRsp::GetObjectStoreItem

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