SmsDeviceStatusChangedEventHandler Delegat

Definition

Dieser Handler wird aufgerufen, wenn sich die status auf dem SMS-Gerät ändert. Aufrufer sollten dies implementieren, wenn sie benachrichtigt werden möchten, wenn eine signifikante Zustandsänderung auf dem Gerät auftritt. Der Aufrufer möchte beispielsweise wissen, wann das Gerät zum Senden und Empfangen von Nachrichten bereit ist.

Hinweis

Diese Funktionalität steht nur für Apps von Mobilfunkanbietern und UWP-Apps mit privilegiertem Zugriff durch Mobilfunknetzbetreiber, mobile Breitbandadapter IHV oder OEM zur Verfügung. Weitere Informationen finden Sie unter Mobiles Breitband.

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)

Parameter

sender
SmsDevice

Ein Verweis auf das Geräteobjekt, das das Ereignis gesendet hat.

Attribute

Windows-Anforderungen

Gerätefamilie
Windows Desktop Extension SDK (eingeführt in 10.0.10240.0)
API contract
Windows.Devices.Sms.LegacySmsApiContract (eingeführt in v1.0)
App-Funktionen
cellularMessaging sms

Gilt für: