Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

EmailBodyResource

Namespace OfficeIMO.Email
Assembly OfficeIMO.Email.Html
Modifiers sealed

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

Inheritance

  • Object
  • EmailBodyResource

Usage

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) #
Returns: Void

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

Parameters

destination System.IO.Stream requiredposition: 0
cancellationToken System.Threading.CancellationToken = default optionalposition: 1
public async Task CopyToAsync(Stream destination, CancellationToken cancellationToken = default) #
Returns: Task

Asynchronously copies this resource to a caller-owned destination.

Parameters

destination System.IO.Stream requiredposition: 0
cancellationToken System.Threading.CancellationToken = default optionalposition: 1
public Stream OpenReadStream(CancellationToken cancellationToken = default) #
Returns: Stream

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

Parameters

cancellationToken System.Threading.CancellationToken = default optionalposition: 0
public async Task<Stream> OpenReadStreamAsync(CancellationToken cancellationToken = default) #
Returns: Task<Stream>

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

Parameters

cancellationToken System.Threading.CancellationToken = default optionalposition: 0
public Byte[] ReadAllBytes(CancellationToken cancellationToken = default) #
Returns: Byte[]

Reads this resource within the configured budgets.

Parameters

cancellationToken System.Threading.CancellationToken = default optionalposition: 0
public async Task<Byte[]> ReadAllBytesAsync(CancellationToken cancellationToken = default) #
Returns: Task<Byte[]>

Asynchronously reads this resource within the configured budgets.

Parameters

cancellationToken System.Threading.CancellationToken = default optionalposition: 0

Properties

public String ContentType { get; } #

Content type declared by the artifact.

public Int64 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.