MobileBroadbandDeviceServiceDataSession.DataReceived 事件

定义

一个事件,指示在调用 WriteDataAsync 方法后在 MobileBroadbandDeviceServiceDataSession 对象上收到了数据。

// Register
event_token DataReceived(TypedEventHandler<MobileBroadbandDeviceServiceDataSession, MobileBroadbandDeviceServiceDataReceivedEventArgs const&> const& handler) const;

// Revoke with event_token
void DataReceived(event_token const* cookie) const;

// Revoke with event_revoker
MobileBroadbandDeviceServiceDataSession::DataReceived_revoker DataReceived(auto_revoke_t, TypedEventHandler<MobileBroadbandDeviceServiceDataSession, MobileBroadbandDeviceServiceDataReceivedEventArgs const&> const& handler) const;
public event TypedEventHandler<MobileBroadbandDeviceServiceDataSession,MobileBroadbandDeviceServiceDataReceivedEventArgs> DataReceived;
function onDataReceived(eventArgs) { /* Your code */ }
mobileBroadbandDeviceServiceDataSession.addEventListener("datareceived", onDataReceived);
mobileBroadbandDeviceServiceDataSession.removeEventListener("datareceived", onDataReceived);
- or -
mobileBroadbandDeviceServiceDataSession.ondatareceived = onDataReceived;
Public Custom Event DataReceived As TypedEventHandler(Of MobileBroadbandDeviceServiceDataSession, MobileBroadbandDeviceServiceDataReceivedEventArgs) 

事件类型

Windows 要求

应用功能
cellularDeviceControl cellularDeviceIdentity

适用于

另请参阅