Compartilhar via


ISmsDevice.SmsDeviceStatusChanged Evento

Definição

Define um manipulador de eventos a ser chamado quando o status do dispositivo SMS é alterado.

public:
 event SmsDeviceStatusChangedEventHandler ^ SmsDeviceStatusChanged;
/// [add: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
/// [remove: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Devices.Sms.LegacySmsApiContract)]
// Register
event_token SmsDeviceStatusChanged(SmsDeviceStatusChangedEventHandler const& handler) const;

// Revoke with event_token
void SmsDeviceStatusChanged(event_token const* cookie) const;

// Revoke with event_revoker
ISmsDevice::SmsDeviceStatusChanged_revoker SmsDeviceStatusChanged(auto_revoke_t, SmsDeviceStatusChangedEventHandler const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
// Register
event_token SmsDeviceStatusChanged(SmsDeviceStatusChangedEventHandler const& handler) const;

// Revoke with event_token
void SmsDeviceStatusChanged(event_token const* cookie) const;

// Revoke with event_revoker
ISmsDevice::SmsDeviceStatusChanged_revoker SmsDeviceStatusChanged(auto_revoke_t, SmsDeviceStatusChangedEventHandler const& handler) const;
[add: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))]
[remove: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Devices.Sms.LegacySmsApiContract))]
event SmsDeviceStatusChangedEventHandler SmsDeviceStatusChanged;
[add: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("SmsDevice may be altered or unavailable for releases after Windows 10. Instead, use SmsDevice2.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Devices.Sms.LegacySmsApiContract")]
event SmsDeviceStatusChangedEventHandler SmsDeviceStatusChanged;
function onSmsDeviceStatusChanged(eventArgs) { /* Your code */ }
iSmsDevice.addEventListener("smsdevicestatuschanged", onSmsDeviceStatusChanged);
iSmsDevice.removeEventListener("smsdevicestatuschanged", onSmsDeviceStatusChanged);
- or -
iSmsDevice.onsmsdevicestatuschanged = onSmsDeviceStatusChanged;
Event SmsDeviceStatusChanged As SmsDeviceStatusChangedEventHandler 

Tipo de evento

Atributos

Requisitos do Windows

Funcionalidades do aplicativo
cellularMessaging sms

Aplica-se a