SmsDeviceStatusChangedEventHandler Delegato

Definizione

Questo gestore viene chiamato quando lo stato del dispositivo SMS cambia. I chiamanti devono implementare questa operazione quando si vuole ricevere una notifica quando si verifica una modifica significativa dello stato nel dispositivo. Ad esempio, il chiamante potrebbe voler sapere quando il dispositivo è pronto per inviare e ricevere messaggi.

Nota

Questa funzionalità è disponibile solo per le app degli operatori mobili e le app UWP fornite con privilegi da operatori di rete mobile, adattatore a banda larga mobile IHV o OEM. Per altre informazioni, vedere Banda larga mobile.

public delegate void SmsDeviceStatusChangedEventHandler(SmsDevice ^ sender);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.Sms.LegacySmsApiContract, 65536)]
/// [Windows.Foundation.Metadata.Deprecated("SmsDeviceStatusChangedEventHandler may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
/// [Windows.Foundation.Metadata.Guid(2552959330, 15831, 17944, 175, 137, 12, 39, 45, 93, 6, 216)]
class SmsDeviceStatusChangedEventHandler : MulticastDelegate
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.Sms.LegacySmsApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2552959330, 15831, 17944, 175, 137, 12, 39, 45, 93, 6, 216)]
/// [Windows.Foundation.Metadata.Deprecated("SmsDeviceStatusChangedEventHandler may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
class SmsDeviceStatusChangedEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.Sms.LegacySmsApiContract), 65536)]
[Windows.Foundation.Metadata.Deprecated("SmsDeviceStatusChangedEventHandler may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))]
[Windows.Foundation.Metadata.Guid(2552959330, 15831, 17944, 175, 137, 12, 39, 45, 93, 6, 216)]
public delegate void SmsDeviceStatusChangedEventHandler(SmsDevice sender);
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.Sms.LegacySmsApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(2552959330, 15831, 17944, 175, 137, 12, 39, 45, 93, 6, 216)]
[Windows.Foundation.Metadata.Deprecated("SmsDeviceStatusChangedEventHandler may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
public delegate void SmsDeviceStatusChangedEventHandler(SmsDevice sender);
var smsDeviceStatusChangedEventHandlerHandler = function(sender){
/* Your code */
}
Public Delegate Sub SmsDeviceStatusChangedEventHandler(sender As SmsDevice)

Parametri

sender
SmsDevice

Riferimento all'oggetto device che ha inviato l'evento.

Attributi

Requisiti Windows

Famiglia di dispositivi
Windows Desktop Extension SDK (è stato introdotto in 10.0.10240.0)
API contract
Windows.Devices.Sms.LegacySmsApiContract (è stato introdotto in v1.0)
Funzionalità dell'app
cellularMessaging sms

Si applica a