DataReader.LoadAsync(UInt32) 方法

定義

從輸入資料流程載入資料。

public:
 virtual DataReaderLoadOperation ^ LoadAsync(unsigned int count) = LoadAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
DataReaderLoadOperation LoadAsync(uint32_t const& count);
[Windows.Foundation.Metadata.RemoteAsync]
public DataReaderLoadOperation LoadAsync(uint count);
function loadAsync(count)
Public Function LoadAsync (count As UInteger) As DataReaderLoadOperation

參數

count
UInt32

unsigned int

uint32_t

要載入中繼緩衝區的位元組計數。

傳回

非同步載入資料要求。

實作

M:Windows.Storage.Streams.IDataReader.LoadAsync(System.UInt32) M:Windows.Storage.Streams.IDataReader.LoadAsync(unsigned int) M:Windows.Storage.Streams.IDataReader.LoadAsync(uint32_t)
屬性

範例

使用此方法的範例應用程式包括 序列化和還原序列化資料範例3D 列印範例、 藍牙 RFCOMM 聊天範例壓縮範例

備註

讀取作業可以根據 InputStreamOptions 屬性的設定方式,取得更多或較少的位元組。

您必須呼叫這個方法來載入資料,才能從 DataReader 讀取資料。

適用於

另請參閱