Edit

Share via


_NameSpace.RemoveStore(MAPIFolder) Method

Definition

Removes a Personal Folders file (.pst) from the current MAPI profile or session.

public:
 void RemoveStore(Microsoft::Office::Interop::Outlook::MAPIFolder ^ Folder);
public void RemoveStore (Microsoft.Office.Interop.Outlook.MAPIFolder Folder);
Public Sub RemoveStore (Folder As MAPIFolder)

Parameters

Folder
MAPIFolder

The Personal Folders file (.pst) to be deleted from the list.

Remarks

This method removes a store only from the Microsoft Outlook user interface. You cannot remove a store from the main mailbox on the server or from a user's hard disk using the Outlook object model.

Applies to