IObjectStoreItem::GetVersionID

The GetVersionID method returns the version ID of the object store item that is contained in a number of Application Integration command response components.

_bstr_t bstrVersionID = spIObjectStoreItem->GetVersionID();
Parameters
None.
Results
Returns a _bstr_t containing the version ID of the object store item that is contained in the response component, which can be set to one of the following:
- a GUID of a specific version series ID for the object store item.
- the special name string "release", for the latest released version of the object store item.
- the special name string "current", for the latest version of the object store item.
- the special name string "reservation", for the current version of the reservation object for the object store item.

Sample
The following is a fragment from the complete example for the IObjectStoreItem interface.
   ...
   // Obtain the specific response information contained in the custom AddRsp component
   IAddRspPtr spIAddRsp(spIAppIntRsp);
_ASSERTE(spIAddRsp != 0);
IObjectStoreItem *spIObjectStoreItemAdded = spIAddRsp->GetObjectStoreItem();
_ASSERTE(spIObjectStoreItem != 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; ...