編輯

共用方式為


Store Interface

Definition

Represents a file on the local computer or a network drive that stores e-mail messages and other items for an account in the current profile.

public interface class Store : Microsoft::Office::Interop::Outlook::_Store
[System.Runtime.InteropServices.Guid("000630C7-0000-0000-C000-000000000046")]
public interface Store : Microsoft.Office.Interop.Outlook._Store
Public Interface Store
Implements _Store
Derived
Attributes
Implements

Remarks

This is a .NET interface derived from a COM coclass that is required by managed code for interoperability with the corresponding COM object. Use this derived interface to access all method, property, and event members of the COM object. However, if a method or event you want to use shares the same name under the same COM object, cast to the corresponding primary interface to call the method, and cast to the latest events interface to connect to the event. Refer to this topic for information about the COM object. For information about the method and property members of the COM object, see _Store.

A profile defines one or more e-mail accounts, and each e-mail account is associated with a server of a specific type. For an Exchange server, a store can be on the server, in an Exchange Public folder, or in a local Personal Folders File (.pst) or Offline Folder File (.ost). For a POP3, IMAP, or HTTP e-mail server, a store is a .pst file.

You can use the Stores and Store objects to enumerate all folders and search folders on all stores in the current session. Since getting the root folder or search folders in a store requires the store to be open and opening a store imposes an overhead on performance, you can check the IsOpen property before you decide to pursue the operation.

If you use an Exchange server, you can access other explicit built-in Store properties for store characteristics such as ExchangeStoreType, IsCachedExchange, and IsDataFileStore. Use the PropertyAccessor object returned by PropertyAccessor to access other store properties that are not exposed in the Outlook object model.

For more information on storing Outlook items in folders and stores, see Storing Outlook Items

Properties

Application

Returns an Application object that represents the parent Outlook application for the object. Read-only.

(Inherited from _Store)
Categories

Returns a Categories collection that represents all of the categories that are defined for the Store. Read-only.

(Inherited from _Store)
Class

Returns an OlObjectClass constant indicating the object's class. Read-only.

(Inherited from _Store)
DisplayName

Returns a String (string in C#) representing the display name of the Store object. Read-only.

(Inherited from _Store)
ExchangeStoreType

Returns a constant in the OlExchangeStoreType enumeration that indicates the type of an Exchange store. Read-only.

(Inherited from _Store)
FilePath

Returns a String (string in C#) representing the full file path for a Personal Folders File (.pst) or an Offline Folder File (.ost) store. Read-only.

(Inherited from _Store)
IsCachedExchange

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

(Inherited from _Store)
IsConversationEnabled

Returns a Boolean (bool for C#) value that is True if the store supports the Conversation view. Read-only.

(Inherited from _Store)
IsDataFileStore

Returns a Boolean (bool in C#) that indicates if the Store is a store for an Outlook data file, which is either a Personal Folders File (.pst) or an Offline Folder File (.ost). Read-only.

(Inherited from _Store)
IsInstantSearchEnabled

Returns a Boolean (bool in C#) that indicates whether Instant Search is enabled and operational on a store. Read-only.

(Inherited from _Store)
IsOpen

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

(Inherited from _Store)
MAPIOBJECT

This object, member, or enumeration is deprecated and is not intended to be used in your code.

(Inherited from _Store)
Parent

Returns the parent Object of the specified object. Read-only.

(Inherited from _Store)
PropertyAccessor

Returns a PropertyAccessor object that supports creating, getting, setting, and deleting properties of the parent Store object. Read-only.

(Inherited from _Store)
Session

Returns the NameSpace object for the current session. Read-only.

(Inherited from _Store)
StoreID

Returns a String (string in C#) identifying the Store. Read-only.

(Inherited from _Store)

Methods

GetDefaultFolder(OlDefaultFolders)

Returns a MAPIFolder object that represents the default folder in the store and that is of the type specified by the FolderType argument.

(Inherited from _Store)
GetRootFolder()

Returns a Folder object representing the root-level folder of the Store. Read-only.

(Inherited from _Store)
GetRules()

Returns a Rules collection object that contains the Rule objects defined for the current session.

(Inherited from _Store)
GetSearchFolders()

Returns a Folders collection object that represents the search folders defined for the Store object.

(Inherited from _Store)
GetSpecialFolder(OlSpecialFolders)

Returns a Folder object for a special folder specified by FolderType in a given store.

(Inherited from _Store)
RefreshQuotaDisplay()

Refreshes the store quota information that is displayed in the status bar in the explorer window.

(Inherited from _Store)

Applies to