SmsDeviceStatusChangedEventHandler 代理人

定義

このハンドラーは、SMS デバイスの状態が変更されたときに呼び出されます。 呼び出し元は、デバイスで重大な状態変更が発生したときに通知を受け取る場合に、これを実装する必要があります。 たとえば、呼び出し元は、デバイスがメッセージを送受信する準備ができたときに知りたい場合があります。

Note

この機能は、モバイル ネットワークオペレーター、モバイル ブロードバンド アダプター IHV、または OEM による特権アクセスを与えられた、モバイル オペレーター アプリと UWP アプリでのみ使用できます。 詳細については、「 モバイル ブロードバンド」を参照してください。

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)

パラメーター

sender
SmsDevice

イベントを送信したデバイス オブジェクトへの参照。

属性

Windows の要件

デバイス ファミリ
Windows Desktop Extension SDK (10.0.10240.0 で導入)
API contract
Windows.Devices.Sms.LegacySmsApiContract (v1.0 で導入)
アプリの機能
cellularMessaging sms

適用対象