This method of the IWebBrowser2 interface closes the Microsoft® Internet Explorer application.
public void Quit();