共用方式為


MAPIFolder.Store Property

Returns a Store object representing the store that contains the Folder object. Read-only.

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

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property Store As Store
    Get
'Usage
Dim instance As MAPIFolder
Dim value As Store

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

Property Value

Type: Microsoft.Office.Interop.Outlook.Store

Remarks

This property returns a Store object except in the case where the Folder is a shared folder (returned by _NameSpace.GetSharedDefaultFolder). In this case, one user has delegated access to a default folder to another user; a call to Folder.Store will return Nothing (a null reference (Nothing in Visual Basic) in C#).

See Also

Reference

MAPIFolder Interface

MAPIFolder Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Create a Sendable Item for a Specific Account Based on the Current Folder

How to: Get the Account for a Folder

How to: Get and Display Items in a Conversation