Class
EmailMessageStore
OfficeIMO.Email
Explicit scope for repeated message reads from one open local archive.
Inheritance
- object
- EmailMessageStore
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Method EmailMessageStore.Open
Methods
public void Dispose() #Closes the archive. Returned message views remain usable while their source is unchanged.
public static EmailMessageStore Open(string path, CancellationToken cancellationToken = default) #Opens one archive. The scope owns its reader.
Parameters
- path string
- cancellationToken System.Threading.CancellationToken = default
Returns
EmailMessageStorepublic EmailMessageReadResult Read(EmailMessageQuery? query = null, CancellationToken cancellationToken = default) #Reads messages while the explicit scope remains open.
Parameters
- query OfficeIMO.Email.EmailMessageQuery? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
EmailMessageReadResult