IHttpContent.ReadAsStringAsync 方法

定义

将 HTTP 内容序列化为 String 作为异步操作。

public:
 IAsyncOperationWithProgress<Platform::String ^, unsigned long long> ^ ReadAsStringAsync();
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<winrt::hstring, uint64_t> ReadAsStringAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<string,ulong> ReadAsStringAsync();
function readAsStringAsync()
Public Function ReadAsStringAsync () As IAsyncOperationWithProgress(Of String, ULong)

返回

IAsyncOperationWithProgress<String,UInt64>

Windows.Foundation.IAsyncOperationWithProgress<Platform::String,unsigned long long>

IAsyncOperationWithProgress<winrt::hstring,uint64_t>

表示异步操作的 对象。

属性

注解

此操作不会阻止。 返回的 IAsyncOperationWithProgress (String, UInt64) 对象将在将所有内容写入 字符串后完成。

适用于

另请参阅