MultipartSection Class

Definition

A multipart section read by MultipartReader.

C#
public class MultipartSection
Inheritance
MultipartSection

Constructors

Properties

BaseStreamOffset

The position where the body starts in the total multipart body. This may not be available if the total multipart body is not seekable.

Body

Gets or sets the body.

ContentDisposition

Gets the value of the Content-Disposition header.

ContentType

Gets the value of the Content-Type header.

Headers

Gets or sets the multipart header collection.

Extension Methods

AsFileSection(MultipartSection)

Converts the section to a file section

AsFormDataSection(MultipartSection)

Converts the section to a form section

GetContentDispositionHeader(MultipartSection)

Retrieves and parses the content disposition header from a section

ReadAsStringAsync(MultipartSection, CancellationToken)

Reads the body of the section as a string

ReadAsStringAsync(MultipartSection)

Reads the body of the section as a string

Applies to

Produkt Verzie
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0