Edit

Share via


MailModule Interface

Definition

Represents the Mail navigation module in the Navigation Pane of an explorer.

public interface class MailModule : Microsoft::Office::Interop::Outlook::_MailModule
[System.Runtime.InteropServices.Guid("000630E9-0000-0000-C000-000000000046")]
public interface MailModule : Microsoft.Office.Interop.Outlook._MailModule
Public Interface MailModule
Implements _MailModule
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 _MailModule.

The MailModule object, derived from the NavigationModule object, provides read-only access to the navigation groups contained in the Mail navigation module of the Navigation Pane for an explorer. Use the GetNavigationModule(OlNavigationModuleType) method or the Item[Object] property (this in C#) of the Modules collection for the parent NavigationPane object to retrieve a NavigationModule object, then use the NavigationModuleType property of the NavigationModule object to retrieve the navigation module type. If the NavigationModuleType property is set to olModuleMail, you can then cast the NavigationModule object reference as a MailModule object to access the NavigationGroups property for that navigation module.

Note: Unlike other navigation modules, such as the CalendarModule object, you cannot create or delete navigation groups in the MailModule object.

You can use the Visible property to determine if the navigation module is visible, and the Position property to return or set the display position of the navigation module within the Navigation Pane. You can use the Name property to return the display name of the Mail navigation module within the Navigation Pane.

Properties

Application

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

(Inherited from _MailModule)
Class

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

(Inherited from _MailModule)
Name

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

(Inherited from _MailModule)
NavigationGroups

Returns a NavigationGroups object that contains the set of navigation groups associated with the MailModule object. Read-only.

(Inherited from _MailModule)
NavigationModuleType

Returns an OlNavigationModuleType constant that represents the navigation module type for the object. Read-only.

(Inherited from _MailModule)
Parent

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

(Inherited from _MailModule)
Position

Returns or sets an Integer (int in C#) value that represents the ordinal position of the MailModule object when displayed in the Navigation Pane. Read/write.

(Inherited from _MailModule)
Session

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

(Inherited from _MailModule)
Visible

Returns or sets a Boolean (bool in C#) value that determines whether the MailModule object is displayed in the Navigation Pane. Read/write.

(Inherited from _MailModule)

Applies to