EmailBodyResource
OfficeIMO.Email
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.
Returned or exposed by 2
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
- cancellationToken System.Threading.CancellationToken = default
public async Task CopyToAsync(Stream destination, CancellationToken cancellationToken = default) #Asynchronously copies this resource to a caller-owned destination.
Parameters
- destination System.IO.Stream
- cancellationToken System.Threading.CancellationToken = default
Returns
Taskpublic 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
Returns
Streampublic async Task<Stream> OpenReadStreamAsync(CancellationToken cancellationToken = default) #Asynchronously opens a fresh sequential stream governed by the configured budgets.
Parameters
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<Stream>public byte[] ReadAllBytes(CancellationToken cancellationToken = default) #Reads this resource within the configured budgets.
Parameters
- cancellationToken System.Threading.CancellationToken = default
Returns
byte[]public async Task<byte[]> ReadAllBytesAsync(CancellationToken cancellationToken = default) #Asynchronously reads this resource within the configured budgets.
Parameters
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<byte[]>