IObjectStoreItem::GetItemType

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

ItemType enItemType = spIObjectStoreItem->GetItemType();
Parameters
None.
Results
The type of the object store item contained in the response component, which can be one of the following:
- eItemTypeDocument
- eItemTypeFolder
- eItemTypeOther
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; ...