IAddViaTemplateRsp Interface

The IAddViaTemplateRsp interface is used to interact with specific AddViaTemplate response parameters contained in the in-process COM Server AddViaTemplate response component, which is returned when the AddViaTemplate 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 added to the object store.

Client applications may also interact with the AddViaTemplate 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 AddViaTemplateRsp  {
[default] interface IAddViaTemplateRsp ;
interface IAppIntRsp;
};

Reference

DLL FnAppIntAddViaTemplateCmd.dll
See Also IAddViaTemplateCmd Interface

Methods

The IAddViaTemplateRsp 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 added to the object store.

Example

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

   ...
   // Obtain the specific response information contained in the custom AddViaTemplateRsp  component
   IAddViaTemplateRspPtr spIAddViaTemplateRsp(spIAppIntRsp);
_ASSERTE(spIAddViaTemplateRsp != 0);
IObjectStoreItemPtr spIObjectStoreItemAdded = spIAddViaTemplateRsp->GetObjectStoreItem();
_ASSERTE(spIObjectStoreItemAdded != 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; ...