The ICheckinRsp interface is used to interact with specific Checkin response parameters contained in the in-process COM Server Checkin response component, which is returned when the Checkin or QuickCheckin command is invoked. This interface enables the client application to obtain the item type, version ID and version series ID of the item that was checked into the object store.
Client applications may also interact with the Checkin 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.
coclass CheckinRsp {
[default] interface ICheckinRsp;
interface IAppIntRsp;
};
DLL | FnAppIntCheckinCmd.dll |
See Also | ICheckinCmd2 Interface |
The ICheckinRsp interface defines one method:
Method | Description |
---|---|
GetObjectStoreItem |
Provides the client application with access to the item type, version ID and version series ID of the item that was checked into the object store. |
The following is a fragment from the complete example for the Checkin command.
...
// Obtain the specific response information contained in the custom AddRsp component
ICheckinRspPtr spICheckinRsp(spIAppIntRsp);
_ASSERTE(spICheckinRsp != 0);
IObjectStoreItemPtr spIObjectStoreItemCheckedIn = spICheckinRsp->GetObjectStoreItem();
_ASSERTE(spIObjectStoreItemCheckedIn != 0);
std::cout << "ObjectStoreName=" << (LPCSTR) spIObjectStoreItemCheckedIn->GetObjectStoreName() << std::endl;
std::cout << "ItemType=" << (LPCSTR) CItemTypeConverter::EnumToBSTR(spIObjectStoreItemCheckedIn->GetItemType()) << std::endl;
std::cout << "VersionSeriesID=" << (LPCSTR) spIObjectStoreItemCheckedIn->GetVersionSeriesID() << std::endl;
std::cout << "VersionID=" << (LPCSTR) spIObjectStoreItemCheckedIn->GetVersionID() << std::endl;
...