Sms​Message​Received​Event​Handler Sms​Message​Received​Event​Handler Sms​Message​Received​Event​Handler Sms​Message​Received​Event​Handler Delegate

Definition

This event handler is called when a new binary message is received. Callers should implement this when they want to handle new binary messages from a given SMS device.

Note

This functionality is only available to mobile operator apps and Windows Store app given privileged access by mobile network operators, mobile broadband adapter IHV, or OEM. For more information, see Mobile Broadband: device apps.

Note

Note that this class and its methods are supported for the maintenance of legacy desktop apps that used it in earlier versions of Windows; and if you do use this class, you must specify the Windows.Devices.Sms.LegacySmsApiContract in your app's manifest. Do not use this class if you are developing new apps for Windows 10. Instead, use the members of this namespace that do not require the Windows.Devices.Sms.LegacySmsApiContract.

public : delegate void SmsMessageReceivedEventHandler(SmsDevice sender, SmsMessageReceivedEventArgs e)public delegate void SmsMessageReceivedEventHandler(SmsDevice sender, SmsMessageReceivedEventArgs e)Public Delegate SmsMessageReceivedEventHandler(sender As SmsDevice, e As SmsMessageReceivedEventArgs)// You can use this delegate in JavaScript.
Parameters
sender
SmsDevice SmsDevice SmsDevice SmsDevice

A reference to the SMS device object that sent the message.

e
SmsMessageReceivedEventArgs SmsMessageReceivedEventArgs SmsMessageReceivedEventArgs SmsMessageReceivedEventArgs

An object that holds the binary and text representations of the message.

Attributes
Windows 10 requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Devices.Sms.LegacySmsApiContract (introduced v1)
Capabilities
sms cellularMessaging