|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Represents the Solutions navigation module in the Navigation Pane of an explorer.
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
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 _SolutionsModule.
The Solutions navigation module contains folders that developers of individual add-ins want to expose to users in the Navigation Pane. Each solution has one root folder under the Solutions module, and each root folder can contain subfolders that hold heterogeneous Outlook items.
To add solution folders programmatically to the Solutions module, use the SolutionsModule object, which is derived from the NavigationModule object.
To obtain an object for the Solutions module, you must first determine whether the Solutions module exists in the Navigation Pane. To do that, use the Modules property for the NavigationPane object to obtain a NavigationModules collection, and then specify the argument olModuleSolutions in the GetNavigationModule(OlNavigationModuleType) method of the NavigationModules collection.
If the call is successful, you can then cast the returned NavigationModule object reference as a SolutionsModule object to access the properties and methods for that navigation module.
To add a solution root folder and its subfolders, pass a Folder object reference to the AddSolution(MAPIFolder, OlSolutionScope) method of the SolutionsModule object. The default position of the Solutions module on the Navigation Pane is '9'.
If no solutions have been added to the Solutions module, it is not visible in the Navigation Pane, and any attempt to set the Position or the Visible properties of the SolutionsModule object raises an error. In addition, any attempt to set the SolutionsModule as the CurrentModule property of the NavigationPane object raises an error.