MultipartSectionStreamExtensions.ReadAsStringAsync Method

Definition

Overloads

ReadAsStringAsync(MultipartSection)

Reads the body of the section as a string

ReadAsStringAsync(MultipartSection, CancellationToken)

Reads the body of the section as a string

ReadAsStringAsync(MultipartSection)

Source:
MultipartSectionStreamExtensions.cs
Source:
MultipartSectionStreamExtensions.cs
Source:
MultipartSectionStreamExtensions.cs

Reads the body of the section as a string

C#
public static System.Threading.Tasks.Task<string> ReadAsStringAsync (this Microsoft.AspNetCore.WebUtilities.MultipartSection section);

Parameters

section
MultipartSection

The section to read from

Returns

The body steam as string

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

ReadAsStringAsync(MultipartSection, CancellationToken)

Source:
MultipartSectionStreamExtensions.cs

Reads the body of the section as a string

C#
public static System.Threading.Tasks.ValueTask<string> ReadAsStringAsync (this Microsoft.AspNetCore.WebUtilities.MultipartSection section, System.Threading.CancellationToken cancellationToken);

Parameters

section
MultipartSection

The section to read from

cancellationToken
CancellationToken

The cancellationt token.

Returns

The body steam as string

Applies to

ASP.NET Core 9.0 and other versions
Product Versions
ASP.NET Core 7.0, 8.0, 9.0