ISelectObjectRsp::GetHyperlink

The GetHyperlink method returns a hyperlink (URL) which points to the specified version of the object store item selected by the user.

_bstr_t bstrHyperlink = spISelectObjectRsp->GetHyperlink();
Parameters
None.
Results
Returns a _bstr_t, which contains a hyperlink (URL) which points to the specified version of the object store item selected by the user.
Sample

The following is a fragment from the complete example for the SelectObject command.

   ...
   // Obtain the information contained in the custom SelectObjectRsp component
   ISelectObjectRspPtr spISelectObjectRsp(spIAppIntRsp);
_ASSERTE(spISelectObjectRsp != 0); std::cout << "Details for the item selected by the user:<< std::endl; std::cout << "FileName=" << (LPCSTR) spISelectObjectRsp->GetItemName() << std::endl; std::cout << "Hyperlink=" << (LPCSTR) spISelectObjectRsp->GetHyperlink() << std::endl; // Obtain the information contained in the custom SelectObjectRsp2 component ISelectObjectRsp2Ptr spISelectObjectRsp2(spIAppIntRsp); _ASSERTE(spISelectObjectRsp2 != 0); std::cout << "MIMEType=" << (LPCSTR) spISelectObjectRsp2->GetMimeType() << std::endl; // Display the information about the selected ObjectStoreItem IObjectStoreItemPtr spIObjectStoreItemSelected = spISelectObjectRsp->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;
...