This document is archived and information here might be outdated.  Recommended version.


Application CoClass for use with ArcMap (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (ArcMap)  

Application CoClass

Esri ArcMap Application

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Interfaces

Interfaces Description
IApplication (esriFramework) Provides access to members that query or modify the application.
IApplicationStatus (esriFramework) Provides access to the applications status.
IApplicationWindows (esriArcMapUI) Provides access to members that control the DataWindow Container.
IDockableWindowManager (esriFramework) Provides access to a method that finds a dockable window in the application.
IEnumPrinterNames (esriArcMapUI) Provides access to an enumeration of all the Printers.
IExtensionManager (esriSystem) Provides access to members that query extension.
IGxApplication (esriCatalogUI) Provides access to members that control the Gx Application object.
IGxCatalogDefaultDatabase (esriCatalog) Provides access to members that manages a GX catalog default geodatabase.
IGxCatalogWorkspace (esriCatalog) Provides access to members that manages a GX catalog workspace.
IMultiThreadedApplication (esriFramework) Provides access to members that control DLL thread managers.
IMxApplication (esriArcMapUI) Provides access to members that control the Mx Application.
IMxApplication2 (esriArcMapUI) Provides access to members that control the Mx Application.
IObjectFactory (esriFramework) Provides access to members that allow automation clients to create arbitrary objects within the application's process space.
IVbaApplication (esriFramework) Provides access to members that modify the VBA projects in this application.
IWindowPosition (esriFramework) Provides access to members that query or modify a window's position, size and state.

Event Interfaces

Interfaces Description
IApplicationStatusEvents (default) Provides access to events fired by application.

Remarks

The Application object is the core object in the ArcMap and ArcCatalog applications. This object represents the application itself and acts as the central point where access is gained to other objects in the system. The Application object's primary interface is IApplication.

Instantiating a new MxDocument starts a new ArcMap application.  Cocreating a new MxDocument actually creates a new Application object which in turn co-creates a new MxDocument.

Working with Events

[Visual Basic 6.0]

When working with Application's default outbound interface in Visual Basic 6 declare variables as follows:

Private WithEvents pApplication as Application