SmsDeviceStatusChangedEventHandler 代理人

定義

當 SMS 裝置的狀態變更時,會呼叫此處理程式。 當呼叫端想要在裝置上發生重大狀態變更時收到通知時,應實作此動作。 例如,呼叫端可能想要知道裝置何時準備好傳送和接收訊息。

注意

這項功能僅適用于行動電信業者應用程式和 UWP 應用程式,由行動網路操作員、行動寬頻介面卡 IHV 或 OEM 提供特殊許可權存取。 如需詳細資訊,請參閱 行動寬頻

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

適用於