Modifica

Condividi tramite


Application Interface

Definition

Represents the entire Outlook application.

public interface class Application : Microsoft::Office::Interop::Outlook::_Application, Microsoft::Office::Interop::Outlook::ApplicationEvents_11_Event
[System.Runtime.InteropServices.Guid("00063001-0000-0000-C000-000000000046")]
public interface Application : Microsoft.Office.Interop.Outlook._Application, Microsoft.Office.Interop.Outlook.ApplicationEvents_11_Event
Public Interface Application
Implements _Application, ApplicationEvents_11_Event
Derived
Attributes
Implements

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(String) method or the intrinsic Visual Basic GetObject function.

The Outlook Application object has several purposes:

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

Properties

AnswerWizard

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Application)
Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

(Inherited from _Application)
Assistance

Returns an IAssistance

(Inherited from _Application)
Assistant

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Application)
Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

(Inherited from _Application)
COMAddIns

Returns a COMAddIns collection that represents all the Component Object Model (COM) add-ins currently loaded in Microsoft Outlook.

(Inherited from _Application)
DefaultProfileName

Returns a String (string in C#) representing the name of the default profile name. Read-only.

(Inherited from _Application)
Explorers

Returns an Explorers collection object that contains the Explorer objects representing all open explorers. Read-only.

(Inherited from _Application)
FeatureInstall

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Application)
Inspectors

Returns an Inspectors collection object that contains the Inspector objects representing all open inspectors. Read-only.

(Inherited from _Application)
IsTrusted

Returns a Boolean (bool in C#) to indicate if an add-in or external caller is considered trusted by Outlook. Read-only

(Inherited from _Application)
LanguageSettings

Returns a LanguageSettings

(Inherited from _Application)
Name

Returns a String (string in C#) value that represents the display name for the object. Read-only.

(Inherited from _Application)
Parent

Returns the parent Object of the specified object. Read-only.

(Inherited from _Application)
PickerDialog

Returns a PickerDialog object that provides the functionality to select people or data in a dialog box. Read-only.

(Inherited from _Application)
ProductCode

Returns a String (string in C#) specifying the Microsoft Outlook globally unique identifier (GUID)

(Inherited from _Application)
Reminders

Returns a Reminders collection that represents all current reminders. Read-only.

(Inherited from _Application)
Session

Returns the NameSpace object for the current session. Read-only.

(Inherited from _Application)
TimeZones

Returns a TimeZones collection that represents the set of time zones supported by Outlook. Read-only.

(Inherited from _Application)
Version

Returns or sets a String (string in C#) indicating the number of the version. Read-only.

(Inherited from _Application)

Methods

ActiveExplorer()

Returns the topmost Explorer object on the desktop.

(Inherited from _Application)
ActiveInspector()

Returns the topmost Inspector object on the desktop.

(Inherited from _Application)
ActiveWindow()

Returns an object representing the topmost Microsoft Outlook window on the desktop, either an Explorer or an Inspector object.

(Inherited from _Application)
AdvancedSearch(String, Object, Object, Object)

Performs a search based on a specified DAV Searching and Locating (DASL) search string.

(Inherited from _Application)
CopyFile(String, String)

Copies a file from a specified location into a Microsoft Outlook store.

(Inherited from _Application)
CreateItem(OlItemType)

Creates and returns a new Microsoft Outlook item.

(Inherited from _Application)
CreateItemFromTemplate(String, Object)

Creates a new Microsoft Outlook item from an Outlook template (.oft) and returns the new item.

(Inherited from _Application)
CreateObject(String)

Creates an Automation object of the specified class.

(Inherited from _Application)
GetNamespace(String)

Returns a NameSpace object of the specified type.

(Inherited from _Application)
GetNewNickNames(Object)

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Application)
GetObjectReference(Object, OlReferenceType)

Creates a strong or weak object reference for a specified Outlook object.

(Inherited from _Application)
IsSearchSynchronous(String)

Returns a Boolean (bool in C#) indicating if a search will be synchronous or asynchronous.

(Inherited from _Application)
RefreshFormRegionDefinition(String)

Refreshes the cache by obtaining the current definition from the Windows registry for one or all of the form regions that are defined for the local machine and the current user.

(Inherited from _Application)

Events

AdvancedSearchComplete

Occurs when the AdvancedSearch(String, Object, Object, Object) method has completed.

(Inherited from ApplicationEvents_11_Event)
AdvancedSearchStopped

Occurs when a specified Search object's Stop() method has been executed.

(Inherited from ApplicationEvents_11_Event)
AttachmentContextMenuDisplay

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from ApplicationEvents_11_Event)
BeforeFolderSharingDialog

Occurs before the Sharing dialog box is displayed for a selected Folder object.

(Inherited from ApplicationEvents_11_Event)
ContextMenuClose

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from ApplicationEvents_11_Event)
FolderContextMenuDisplay

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from ApplicationEvents_11_Event)
ItemContextMenuDisplay

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from ApplicationEvents_11_Event)
ItemLoad

Occurs when an Outlook item is loaded into memory.

(Inherited from ApplicationEvents_11_Event)
ItemSend

Occurs whenever an Outlook item is sent, either by the user through an Inspector (before the inspector is closed, but after the user clicks the Send button) or when the Send() method for an Outlook item, such as MailItem, is used in a program.

(Inherited from ApplicationEvents_11_Event)
MAPILogonComplete

Occurs after the user has logged onto the system.

(Inherited from ApplicationEvents_11_Event)
NewMail

Occurs when one or more new e-mail messages are received in the Inbox.

(Inherited from ApplicationEvents_11_Event)
NewMailEx

Occurs when a new item is received in the Inbox.

(Inherited from ApplicationEvents_11_Event)
OptionsPagesAdd

Occurs whenever the user clicks the Add-in Options button on the Add-ins tab of the Outlook Options dialog box.

(Inherited from ApplicationEvents_11_Event)
Quit

Occurs when Outlook begins to close.

(Inherited from ApplicationEvents_11_Event)
Reminder

Occurs immediately before a reminder is displayed.

(Inherited from ApplicationEvents_11_Event)
ShortcutContextMenuDisplay

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from ApplicationEvents_11_Event)
Startup

Occurs when Microsoft Outlook is starting, but after all add-in programs have been loaded.

(Inherited from ApplicationEvents_11_Event)
StoreContextMenuDisplay

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from ApplicationEvents_11_Event)
ViewContextMenuDisplay

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from ApplicationEvents_11_Event)

Applies to