共用方式為


IHttpContent.ReadAsStringAsync 方法

定義

將 HTTP 內容序列化為 字串 做為非同步作業。

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) 物件會在所有內容都已寫入 String之後完成。

適用於

另請參閱