Partager via


_NameSpace.AddStoreEx Method

Adds a Personal Folders file (.pst) in the specified format to the current profile.

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

Syntax

'Declaration
<DispIdAttribute()> _
Sub AddStoreEx ( _
    Store As Object, _
    Type As OlStoreType _
)
'Usage
Dim instance As _NameSpace
Dim Store As Object
Dim Type As OlStoreType

instance.AddStoreEx(Store, Type)
[DispIdAttribute()]
void AddStoreEx(
    Object Store,
    OlStoreType Type
)

Parameters

  • Store
    Type: System.Object

    The path of the .pst file to be added to the profile. If the .pst file does not exist, Microsoft Outlook creates it.

Remarks

Use the olStoreUnicode constant to add a new .pst file that has greater storage capacity for items and folders and supports multilingual Unicode data, to the user's profile. The olStoreANSI constant allows you to create .pst files that do not provide full support for multilingual Unicode data, but are compatible with earlier versions of Outlook. The olStoreDefault constant helps you create a .pst file in the default format that is compatible with the mailbox mode in which Outlook runs on the Microsoft Exchange Server.

See Also

Reference

_NameSpace Interface

_NameSpace Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Add or Remove a Store