Shutdown Method
The Shutdown method closes the user's ExpressAddin Application Integration
session.
- Usage
HRESULT hResult = spIExpressAddin->Shutdown();
- Parameters
- None.
- Return
- This method returns an HRESULT value indicating the success/failure of the
attempt to close the user's Application Integration session. A Shutdown call
made prior to session creation will return a value of E_FAIL.
- Example
- The following are fragments from the Add-In Sample
Application, which demonstrates how to implement this method in C++. In
the file AddInSampleAppDlg.cpp, calls are made to the Shutdown method to close
the user's Application Integration session.
...
void AddinSampleDlg::OnCancel()
{
// Disconnect the event handling.
Disconnect();
// Call shutdown on the COM Server.
HRESULT hResult = m_spIAddin->Shutdown();
// Base class call.
CDialog::OnCancel();
}
...
- See Also
- Startup Method
- RunCommand Method