ICheckoutListRsp::GetObjectStoreItem

The GetObjectStoreItem method enables the client application to obtain the item type, version ID and version series ID of the item that was selected by the user when the CheckoutList command was executed. This method provides access to the information specified through the IObjectStoreItem interface.

IObjectStoreItemPtr spIObjectStoreItemSelected = spICheckoutListRsp->GetObjectStoreItem();
Parameters
None.
Results
Returns a pointer to an IObjectStoreItem interface, which contains information about the item that was selected by the user when the CheckoutList command was executed.
Sample
The following is a fragment from the complete example for the CheckoutList command.
   ...
   // Obtain the specific response information contained in the custom CheckoutListRsp component
   ICheckoutListRspPtr spICheckoutListRsp(spIAppIntRsp);
_ASSERTE(spICheckoutListRsp != 0);
IObjectStoreItemPtr spIObjectStoreItemSelected = spICheckoutListRsp->GetObjectStoreItem();
_ASSERTE(spIObjectStoreItemSelected != 0);
std::cout << "ObjectStoreName=" << (LPCSTR) spIObjectStoreItemSelected->GetObjectStoreName() << std::endl;
std::cout << "ItemType=" << (LPCSTR) CItemTypeConverter::EnumToBSTR(spIObjectStoreItemSelected->GetItemType()) << std::endl;
std::cout << "VersionSeriesID=" << (LPCSTR) spIObjectStoreItemSelected->GetVersionSeriesID() << std::endl;
std::cout << "VersionID=" << (LPCSTR) spIObjectStoreItemSelected->GetVersionID() << std::endl; ...