_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
Folder
Type: Microsoft.Office.Interop.Outlook.MAPIFolderThe 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.
See Also
Reference
Microsoft.Office.Interop.Outlook Namespace