_Store.IsOpen Property

Returns a Boolean (bool in C#) that indicates if the Store is open. Read-only.

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

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property IsOpen As Boolean
    Get
'Usage
Dim instance As _Store
Dim value As Boolean

value = instance.IsOpen
[DispIdAttribute()]
bool IsOpen { get; }

Property Value

Type: System.Boolean

Remarks

This property supports both Exchange and non-Exchange stores.

IsOpen only indicates if the store is open. It does not indicate if the store is offline, or if it is an Exchange mailbox or an Exchange Public Folder and the store server is down.

Because opening a store can impose a performance overhead, and _Store.GetRootFolder and _Store.GetSearchFolders will open a store if it is not already open, you can use IsOpen before deciding to call GetRootFolder or GetSearchFolders to minimize performance overhead.

See Also

Reference

_Store Interface

_Store Members

Microsoft.Office.Interop.Outlook Namespace