The GetObjectStoreItem method enables the client application to obtain the item type, version ID and version series ID of the link item. This method provides access to the information specified through the IObjectStoreItem interface.
IObjectStoreItemPtr spIObjectStoreItemLinked = spILinkDescriptor->GetObjectStoreItem();
_bstr_t bstrLinkClassID = spILinkDescriptor->GetLinkClassId();
std::cout << "Link Class ID=" << (bstrLinkClassID.length() ? (LPCSTR) bstrLinkClassID : _T("")) << std::endl;
_bstr_t bstrPropertiesXml = spILinkDescriptor->GetPropertiesXml();
std::cout << "Properties XML=" << (bstrPropertiesXml.length() ? (LPCSTR) bstrPropertiesXml : _T("")) << std::endl;
std::cout << "Relationship=" << (LPCSTR) CItemTypeConverter::EnumToBSTR(spILinkDescriptor->GetRelationshipType()) << std::endl;
IObjectStoreItemPtr spIObjectStoreItemLinked = spILinkDescriptor->GetObjectStoreItem();
std::cout << "ObjectStoreName=" << (LPCSTR) spIObjectStoreItemLinked->GetObjectStoreName() << std::endl;
std::cout << "ItemType=" << (LPCSTR) CItemTypeConverter::EnumToBSTR(spIObjectStoreItemLinked->GetItemType()) << std::endl;
std::cout << "VersionSeriesID=" << (LPCSTR) spIObjectStoreItemLinked->GetVersionSeriesID() << std::endl;
std::cout << "VersionID=" << (LPCSTR) spIObjectStoreItemLinked->GetVersionID() << std::endl;