MultipartSectionStreamExtensions.ReadAsStringAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ReadAsStringAsync(MultipartSection) |
以字符串形式读取节的正文 |
ReadAsStringAsync(MultipartSection, CancellationToken) |
以字符串形式读取节的正文 |
ReadAsStringAsync(MultipartSection)
以字符串形式读取节的正文
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)
以字符串形式读取节的正文
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
取消标记。
返回
正文蒸汽作为字符串