語言

MessageWebSocket.SendFinalFrameAsync(IBuffer) 方法

定義

非同步(有進度)會以序列串流寫入資料框架,語意上這是 WebSocket 訊息的最後一個框架(此框架的 FIN 位元設為 1)。 此方法與 SendNonfinalFrameAsync 允許你發送單一 WebSocket 框架。

public:
 virtual IAsyncOperationWithProgress<unsigned int, unsigned int> ^ SendFinalFrameAsync(IBuffer ^ data) = SendFinalFrameAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<uint32_t, uint32_t> SendFinalFrameAsync(IBuffer const& data);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<uint,uint> SendFinalFrameAsync(IBuffer data);
function sendFinalFrameAsync(data)
Public Function SendFinalFrameAsync (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 需求

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

適用於