API Reference
EmailBodyResource
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.
Returned or exposed by
Methods
public Void CopyTo(Stream destination, CancellationToken cancellationToken = default) #VoidCopies 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) #TaskAsynchronously copies this resource to a caller-owned destination.
Parameters
- destination System.IO.Stream
- cancellationToken System.Threading.CancellationToken = default
public Stream OpenReadStream(CancellationToken cancellationToken = default) #StreamOpens a fresh sequential stream governed by the per-resource and projection-wide budgets.
Parameters
- cancellationToken System.Threading.CancellationToken = default
public async Task<Stream> OpenReadStreamAsync(CancellationToken cancellationToken = default) #Task<Stream>Asynchronously opens a fresh sequential stream governed by the configured budgets.
Parameters
- cancellationToken System.Threading.CancellationToken = default
public Byte[] ReadAllBytes(CancellationToken cancellationToken = default) #Byte[]Reads this resource within the configured budgets.
Parameters
- cancellationToken System.Threading.CancellationToken = default
public async Task<Byte[]> ReadAllBytesAsync(CancellationToken cancellationToken = default) #Task<Byte[]>Asynchronously reads this resource within the configured budgets.
Parameters
- cancellationToken System.Threading.CancellationToken = default
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
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.