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 需求

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

適用於