Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

EmailBodyResource

OfficeIMO.Email

Namespace
OfficeIMO.Email
Assembly
OfficeIMO.Email.Html
Source revision
ba882f6b0d07 with working tree changes
Modifiers
sealed

Operation-scoped attachment resource resolved by CID, content location, or filename.

Inheritance

  • object
  • EmailBodyResource

Usage

Explore 2 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.

Methods

public void CopyTo(Stream destination, CancellationToken cancellationToken = default) #

Copies this resource to a caller-owned destination without materializing another byte array.

Parameters

destination System.IO.Stream required
cancellationToken System.Threading.CancellationToken = default optional
public async Task CopyToAsync(Stream destination, CancellationToken cancellationToken = default) #

Asynchronously copies this resource to a caller-owned destination.

Parameters

destination System.IO.Stream required
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task
public Stream OpenReadStream(CancellationToken cancellationToken = default) #

Opens a fresh sequential stream governed by the per-resource and projection-wide budgets.

Parameters

cancellationToken System.Threading.CancellationToken = default optional

Returns

Stream
public async Task<Stream> OpenReadStreamAsync(CancellationToken cancellationToken = default) #

Asynchronously opens a fresh sequential stream governed by the configured budgets.

Parameters

cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<Stream>
public byte[] ReadAllBytes(CancellationToken cancellationToken = default) #

Reads this resource within the configured budgets.

Parameters

cancellationToken System.Threading.CancellationToken = default optional

Returns

byte[]
public async Task<byte[]> ReadAllBytesAsync(CancellationToken cancellationToken = default) #

Asynchronously reads this resource within the configured budgets.

Parameters

cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<byte[]>

Properties

public string ContentType { get; } #

Content type declared by the artifact.

public long Length { get; } #

Declared decoded length.

public string? ContentId { get; } #

Normalized Content-ID without angle brackets.

public string? ContentLocation { get; } #

Content-Location retained by the artifact.

public string? FileName { get; } #

Safe filename retained by the artifact.