다음을 통해 공유


ISmsDevice.SmsDeviceStatusChanged 이벤트

정의

SMS 디바이스의 상태 변경될 때 호출할 이벤트 처리기를 설정합니다.

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 

이벤트 유형

특성

Windows 요구 사항

앱 기능
cellularMessaging sms

적용 대상