MultipartSectionStreamExtensions.ReadAsStringAsync 方法

定义

重载

ReadAsStringAsync(MultipartSection)

以字符串形式读取节的正文

ReadAsStringAsync(MultipartSection, CancellationToken)

以字符串形式读取节的正文

ReadAsStringAsync(MultipartSection)

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

以字符串形式读取节的正文

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)

参数

section
MultipartSection

要从中读取的部分

返回

正文蒸汽作为字符串

适用于

ReadAsStringAsync(MultipartSection, CancellationToken)

Source:
MultipartSectionStreamExtensions.cs

以字符串形式读取节的正文

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)

参数

section
MultipartSection

要从中读取的部分

cancellationToken
CancellationToken

取消标记。

返回

正文蒸汽作为字符串

适用于