Modifica

Condividi tramite


NavigationFolders Interface

Definition

Contains a set of NavigationFolder objects that represent the navigation folders associated with a navigation group.

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

Use the NavigationFolders property of the NavigationGroup object to return a NavigationFolders object.

Use the Add(MAPIFolder) method to create a new NavigationFolder object based on an existing Folder object and add it to the collection. Use the Item[Object] property (this in C#) to return an existing NavigationFolder object contained by the NavigationFolders collection. Use the Remove(NavigationFolder) method from the NavigationFolders collection of the parent NavigationGroup object.

Use the NavigationFolderAdd and NavigationFolderRemove events to detect when a navigation folder is added or removed, respectively, from the NavigationFolders object. Use the SelectedChange event to detect changes in selection state for navigation folders contained in the NavigationFolders object that are based on calendar folders.

Note that if you delete a Folder using Delete(), the deletion will be reflected automatically in the Navigation Pane and in the NavigationFolders collection, but because the synchronization between the actual folders and the Navigation Pane happens asynchronously, this will take a few milliseconds to complete.

Properties

Application

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

(Inherited from _NavigationFolders)
Class

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

(Inherited from _NavigationFolders)
Count

Returns an Integer (int in C#) value indicating the count of objects in the specified collection. Read-only.

(Inherited from _NavigationFolders)
Item[Object]

Returns a NavigationFolder object from the collection.

(Inherited from _NavigationFolders)
Parent

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

(Inherited from _NavigationFolders)
Session

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

(Inherited from _NavigationFolders)

Methods

Add(MAPIFolder)

Adds the specified Folder, as a NavigationFolder object, to the end of the NavigationFolders collection.

(Inherited from _NavigationFolders)
Remove(NavigationFolder)

Removes an object from the collection.

(Inherited from _NavigationFolders)

Applies to