_NameSpace.RemoveStore Method

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

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Sub RemoveStore ( _
    Folder As MAPIFolder _
)
'Usage
Dim instance As _NameSpace
Dim Folder As MAPIFolder

instance.RemoveStore(Folder)
[DispIdAttribute()]
void RemoveStore(
    MAPIFolder Folder
)

Parameters

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.

See Also

Reference

_NameSpace Interface

_NameSpace Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Add or Remove a Store