Class WebDownload
A file the browser downloaded while a web operation ran.
public sealed record WebDownload : IEquatable<WebDownload>
- Inheritance
-
WebDownload
- Implements
- Inherited Members
- Extension Methods
Constructors
WebDownload(string, string, ReadOnlyMemory<byte>)
A file the browser downloaded while a web operation ran.
public WebDownload(string FileName, string MediaType, ReadOnlyMemory<byte> Content)
Parameters
FileNamestringThe suggested file name, or the name the test asked for.
MediaTypestringA best-effort media type guessed from the file's extension.
ContentReadOnlyMemory<byte>The downloaded bytes.
Properties
Content
The downloaded bytes.
public ReadOnlyMemory<byte> Content { get; init; }
Property Value
FileName
The suggested file name, or the name the test asked for.
public string FileName { get; init; }
Property Value
MediaType
A best-effort media type guessed from the file's extension.
public string MediaType { get; init; }
Property Value
Size
The size of the downloaded file in bytes.
public long Size { get; }