SmsMessageReceivedEventHandler SmsMessageReceivedEventHandler SmsMessageReceivedEventHandler SmsMessageReceivedEventHandler SmsMessageReceivedEventHandler Delegate


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.


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


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)
struct SmsMessageReceivedEventHandler : winrt::Windows::Foundation::IUnknown
   SmsMessageReceivedEventHandler(std::nullptr_t = nullptr) noexcept;
   template <typename L> SmsMessageReceivedEventHandler(L lambda);
   template <typename F> SmsMessageReceivedEventHandler(F* function);
   template <typename O, typename M> SmsMessageReceivedEventHandler(O* object, M method);
   void operator()(winrt::Windows::Devices::Sms::SmsDevice const& sender, winrt::Windows::Devices::Sms::SmsMessageReceivedEventArgs const& e) const;
public delegate void SmsMessageReceivedEventHandler(SmsDevice sender, SmsMessageReceivedEventArgs e)
Public Delegate Sub SmsMessageReceivedEventHandler(sender As SmsDevice, e As SmsMessageReceivedEventArgs)
var smsMessageReceivedEventHandler = function(sender, e) {

 /* Your code */



SmsDevice SmsDevice SmsDevice

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

SmsMessageReceivedEventArgs SmsMessageReceivedEventArgs SmsMessageReceivedEventArgs

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


Windows 10 requirements

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