IAppIntRsp::GetName

The GetName method returns the name of the response returned by the invoked command.

_bstr_t pbstrResponseName = spIAppIntRsp->GetName();
Parameters
None.
Results
Returns a _bstr_t containing the name of the response.
Sample
The following is a fragment from the complete example for the standard IAppIntRsp interface.
   ...
   std::cout << "The command succeeded." << std::endl;

   // Obtain the response name and description from the standard response component
   _bstr_t bstrResponseDescription = spIAppIntRsp->GetDescription();
   std::cout << "ResponseDescription=" << ( bstrResponseDescription.length() ? (LPCSTR) bstrResponseDescription : _T( "" ) ) << std::endl;
   _bstr_t bstrResponseName = spIAppIntRsp->GetName();
   std::cout << "ResponseName=" << ( bstrResponseName.length() ? (LPCSTR) bstrResponseName : _T( "" ) ) << std::endl;
   spIDownloadCmd->Initialize(bstrPathName, pIObjectStoreItem, contentElementIndex);
   ...