MultipartSection Class

Definition

A multipart section read by MultipartReader.

public ref class MultipartSection
public class MultipartSection
type MultipartSection = class
Public Class MultipartSection
Inheritance
MultipartSection

Constructors

MultipartSection()

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)

Reads the body of the section as a string

ReadAsStringAsync(MultipartSection, CancellationToken)

Reads the body of the section as a string

Applies to