API Reference

Interface

IEmailContentSource

Namespace OfficeIMO.Email
Assembly OfficeIMO.Email
Modifiers abstract

Supplies a fresh readable stream for content that should not be retained as a resident byte array. Future mailbox stores can implement this contract without leaking store-specific handles into the email model.

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by

Methods

public abstract Stream OpenRead() #
Returns: Stream

Opens a new readable stream. The caller owns and disposes the returned stream.

public abstract Task<Stream> OpenReadAsync(CancellationToken cancellationToken = null) #
Returns: Task<Stream>

Asynchronously opens a new readable stream. The caller owns and disposes the returned stream.

Parameters

cancellationToken System.Threading.CancellationToken = null optionalposition: 0

Properties

public abstract Nullable<Int64> Length { get; } #

Known decoded content length, or null when the source cannot determine it cheaply.