Class MediaDownload
Streamed media from DownloadMediaAsync(MxcUri, CancellationToken); dispose to release the connection.
Implements
Inherited Members
Namespace: Uniform.Matrix.Protocol.Client
Assembly: Uniform.Matrix.Protocol.Client.dll
Syntax
public sealed class MediaDownload : IDisposable
Properties
| Edit this page View SourceContent
Media bytes.
Declaration
public Stream Content { get; }
Property Value
| Type | Description |
|---|---|
| Stream |
ContentType
MIME type, e.g. image/png.
Declaration
public string? ContentType { get; }
Property Value
| Type | Description |
|---|---|
| string |
FileName
File name given at upload.
Declaration
public string? FileName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Length
Size in bytes when the server sent it.
Declaration
public long? Length { get; }
Property Value
| Type | Description |
|---|---|
| long? |
Methods
| Edit this page View SourceDispose()
Close Content and the response.
Declaration
public void Dispose()