MobileBroadbandDeviceServiceDataSession.DataReceived Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Événement qui indique que des données ont été reçues sur l’objet MobileBroadbandDeviceServiceDataSession après l’appel de la méthode WriteDataAsync .
// 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)
Type d'événement
TypedEventHandler<MobileBroadbandDeviceServiceDataSession,MobileBroadbandDeviceServiceDataReceivedEventArgs>
Configuration requise pour Windows
Fonctionnalités de l’application |
cellularDeviceControl
cellularDeviceIdentity
|