Skip to content

Latest commit

 

History

History
51 lines (28 loc) · 1.74 KB

Outlook.Store.GetDefaultFolder.md

File metadata and controls

51 lines (28 loc) · 1.74 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Store.GetDefaultFolder method (Outlook)
vbaol11.chm3437
vbaol11.chm3437
Outlook.Store.GetDefaultFolder
f3e87528-6de8-dc59-8d27-f19f6b344044
06/08/2017
medium

Store.GetDefaultFolder method (Outlook)

Returns a Folder object that represents the default folder in the store and that is of the type specified by the FolderType argument.

Syntax

expression. GetDefaultFolder( _FolderType_ )

expression A variable that represents a 'Store' object.

Parameters

Name Required/Optional Data type Description
FolderType Required OlDefaultFolders Specifies the type of the requested default folder.

Return value

A Folder object that represents the default folder of the requested type. If the default folder of the requested type does not exist, GetDefaultFolder returns Null (Nothing in Visual Basic).

Remarks

This method is similar to the GetDefaultFolder method of the NameSpace object. The difference is that this method gets the default folder on the delivery store that is associated with the account, whereas NameSpace.GetDefaultFolder returns the default folder on the default store for the current profile.

One example of when GetDefaultFolder returns Null (Nothing in Visual Basic) is when olFolderManagedEmail is specified as the FolderType but the Managed Folders group has not been deployed.

See also

Store Object

[!includeSupport and feedback]