_Explorers.Add Method
Creates a new instance of the explorer window.
Namespace: Microsoft.Office.Interop.Outlook
Assembly: Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)
Syntax
'Declaration
<DispIdAttribute()> _
Function Add ( _
Folder As Object, _
DisplayMode As OlFolderDisplayMode _
) As Explorer
'Usage
Dim instance As _Explorers
Dim Folder As Object
Dim DisplayMode As OlFolderDisplayMode
Dim returnValue As Explorer
returnValue = instance.Add(Folder, DisplayMode)
[DispIdAttribute()]
Explorer Add(
Object Folder,
OlFolderDisplayMode DisplayMode
)
Parameters
Folder
Type: System.ObjectThe object to display in the explorer window when it is created.
DisplayMode
Type: Microsoft.Office.Interop.Outlook.OlFolderDisplayModeThe display mode of the folder. Can be one of the OlFolderDisplayMode constants.
Return Value
Type: Microsoft.Office.Interop.Outlook.Explorer
An Explorer object that represents a new instance of the window.
Remarks
The Folder argument can represent either a Folder object or the URL to that folder.
The explorer window is initially hidden. You must call the Display method of the Explorer object to make it visible.
See Also
Reference
Microsoft.Office.Interop.Outlook Namespace