MessageWebSocket.SendNonfinalFrameAsync(IBuffer) 方法

定義

以非同步方式 (進度) 在循序資料流程中寫入一個資料框架,其中更多畫面格會針對相同 WebSocket 訊息追蹤的語意, (此框架上的 FIN 位設定為 0) 。 此方法和 SendFinalFrameAsync 可讓您傳送個別的 WebSocket 畫面。

public:
 virtual IAsyncOperationWithProgress<unsigned int, unsigned int> ^ SendNonfinalFrameAsync(IBuffer ^ data) = SendNonfinalFrameAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<uint32_t, uint32_t> SendNonfinalFrameAsync(IBuffer const& data);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<uint,uint> SendNonfinalFrameAsync(IBuffer data);
function sendNonfinalFrameAsync(data)
Public Function SendNonfinalFrameAsync (data As IBuffer) As IAsyncOperationWithProgress(Of UInteger, UInteger)

參數

data
IBuffer

緩衝區,其中包含構成要傳送之框架的資料。

傳回

IAsyncOperationWithProgress<UInt32,UInt32>

Windows.Foundation.IAsyncOperationWithProgress<unsigned int,unsigned int>

IAsyncOperationWithProgress<uint32_t,uint32_t>

具有進度的非同步位元組寫入器作業。

屬性

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)
應用程式功能
internetClientServer privateNetworkClientServer

適用於