Partager via


Application Interface

Represents the entire Outlook application.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<GuidAttribute("00063001-0000-0000-C000-000000000046")> _
<CoClassAttribute(GetType(ApplicationClass))> _
Public Interface Application _
    Inherits _Application, ApplicationEvents_11_Event
'Usage
Dim instance As Application
[GuidAttribute("00063001-0000-0000-C000-000000000046")]
[CoClassAttribute(typeof(ApplicationClass))]
public interface Application : _Application, 
    ApplicationEvents_11_Event

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _Application. For information about the event members of the COM object, see ApplicationEvents_11_Event.

This is the only object in the hierarchy that can be returned by using the CreateObject method or the intrinsic Visual Basic GetObject function.

The Outlook Application object has several purposes:

  • As the root object, it allows access to other objects in the Outlook hierarchy.

  • It allows direct access to a new item created by using CreateItem, without having to traverse the object hierarchy.

  • It allows access to the active interface objects (the explorer and the inspector).

When you use Automation to control Microsoft Outlook from another application, you use the CreateObject method to create an Outlook Application object.

See Also

Reference

Application Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Create an Appointment That Starts in the Pacific Time Zone and Ends in the Eastern Time Zone

How to: Create a Recurring Appointment by Using the Default Recurrence Pattern

How to: Create a Recurring Appointment That Has a Weekly Pattern

How to: Import Appointment XML Data into Outlook Appointment Objects

How to: Create a Mail Item by Using a Message Template

How to: Create a Mail Item, Attach a Report, and Send the Mail Item to the User's Manager

How to: Create a Distribution List

How to: Send an E-Mail Given the SMTP Address of an Account

How to: Get and Log On to an Instance of Outlook