Share via


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

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<System::String ^> ^ ReadAsStringAsync(Microsoft::AspNetCore::WebUtilities::MultipartSection ^ section);
public static System.Threading.Tasks.Task<string> ReadAsStringAsync (this Microsoft.AspNetCore.WebUtilities.MultipartSection section);
static member ReadAsStringAsync : Microsoft.AspNetCore.WebUtilities.MultipartSection -> System.Threading.Tasks.Task<string>
<Extension()>
Public Function ReadAsStringAsync (section As MultipartSection) As Task(Of String)

Parameters

section
MultipartSection

The section to read from

Returns

The body steam as string

Applies to

ReadAsStringAsync(MultipartSection, CancellationToken)

Source:
MultipartSectionStreamExtensions.cs

Reads the body of the section as a string

public static System.Threading.Tasks.ValueTask<string> ReadAsStringAsync (this Microsoft.AspNetCore.WebUtilities.MultipartSection section, System.Threading.CancellationToken cancellationToken);
static member ReadAsStringAsync : Microsoft.AspNetCore.WebUtilities.MultipartSection * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<string>
<Extension()>
Public Function ReadAsStringAsync (section As MultipartSection, cancellationToken As CancellationToken) As ValueTask(Of String)

Parameters

section
MultipartSection

The section to read from

cancellationToken
CancellationToken

The cancellationt token.

Returns

The body steam as string

Applies to