ISelectObjectRsp Interface

The ISelectObjectRsp interface is used to interact with specific SelectObject response parameters contained in the in-process COM Server SelectObject response component, which is returned when the SelectObject command is invoked. This interface enables the client application to obtain the filename, specified version, item type, version ID and version series ID of the item that was selected.

The ISelectObjectRsp2 response component interface enables customers to obtain the MIME type of the selected item. Customers may use both the ISelectObjectRsp and ISelectObjectRsp2 interfaces in new development, as well as in existing implementations.

Client applications may also interact with the SelectObject response component via the IAppIntRsp interface. For more information about working with command and response components and their COM interfaces, see Command and Response components.

COM Class ID

coclass SelectObjectRsp {
[default] interface ISelectObjectRsp; interface ISelectObjectRsp2;
interface IAppIntRsp;
};

Reference

DLL FnAppIntSelectObjectCmd.dll
See Also ISelectObjectRsp2 and ISelectObjectCmd2 Interfaces

Methods

The ISelectObjectRsp interface defines the following methods:

Method Description
GetHyperlink

Returns a hyperlink (URL) which points to the specified version of the object store item selected by the user.

GetItemName

Returns the filename of the selected object store item.

GetObjectStoreItem

Provides access to the item type, version ID and version series ID of the item that was selected by the user when the SelectObject command was executed.

Example

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;
...