MobileBroadbandDeviceServiceDataSession.DataReceived 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
事件,指出呼叫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)
事件類型
TypedEventHandler<MobileBroadbandDeviceServiceDataSession,MobileBroadbandDeviceServiceDataReceivedEventArgs>
Windows 需求
應用程式功能 |
cellularDeviceControl
cellularDeviceIdentity
|