MobileBroadbandDeviceServiceDataSession.DataReceived Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An event that indicates that data was received on the MobileBroadbandDeviceServiceDataSession object after the WriteDataAsync method was called.
// 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)
Event Type
TypedEventHandler<MobileBroadbandDeviceServiceDataSession,MobileBroadbandDeviceServiceDataReceivedEventArgs>
Windows requirements
App capabilities |
cellularDeviceControl
cellularDeviceIdentity
|