PhoneTrigger Klasse
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Stellt ein Telefonereignis dar, das eine Hintergrundaufgabe auslöst.
public ref class PhoneTrigger sealed : IBackgroundTrigger
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Background.IPhoneTriggerFactory, 65536, Windows.ApplicationModel.Calls.CallsPhoneContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Calls.CallsPhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class PhoneTrigger final : IBackgroundTrigger
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Background.IPhoneTriggerFactory, 65536, "Windows.ApplicationModel.Calls.CallsPhoneContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Calls.Background.CallsBackgroundContract, 65536)]
/// [Windows.Foundation.Metadata.PreviousContractVersion("Windows.ApplicationModel.Calls.CallsPhoneContract", 65536, 131072)]
class PhoneTrigger final : IBackgroundTrigger
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Background.IPhoneTriggerFactory, 65536, "Windows.ApplicationModel.Calls.CallsPhoneContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Calls.Background.CallsBackgroundContract, 65536)]
/// [Windows.Foundation.Metadata.PreviousContractVersion("Windows.ApplicationModel.Calls.CallsPhoneContract", 65536, 196608)]
class PhoneTrigger final : IBackgroundTrigger
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Background.IPhoneTriggerFactory), 65536, typeof(Windows.ApplicationModel.Calls.CallsPhoneContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Calls.CallsPhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class PhoneTrigger : IBackgroundTrigger
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Background.IPhoneTriggerFactory), 65536, "Windows.ApplicationModel.Calls.CallsPhoneContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Calls.Background.CallsBackgroundContract), 65536)]
[Windows.Foundation.Metadata.PreviousContractVersion("Windows.ApplicationModel.Calls.CallsPhoneContract", 65536, 131072)]
public sealed class PhoneTrigger : IBackgroundTrigger
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Background.IPhoneTriggerFactory), 65536, "Windows.ApplicationModel.Calls.CallsPhoneContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Calls.Background.CallsBackgroundContract), 65536)]
[Windows.Foundation.Metadata.PreviousContractVersion("Windows.ApplicationModel.Calls.CallsPhoneContract", 65536, 196608)]
public sealed class PhoneTrigger : IBackgroundTrigger
function PhoneTrigger(type, oneShot)
Public NotInheritable Class PhoneTrigger
Implements IBackgroundTrigger
- Vererbung
- Attribute
- Implementiert
Windows-Anforderungen
Gerätefamilie |
Windows Mobile Extension SDK (eingeführt in 10.0.10240.0)
Windows Desktop Extension SDK (eingeführt in 10.0.10586.0) Windows Mobile Extension SDK (eingeführt in 10.0.10586.0) Windows 10, version 1809 (eingeführt in 10.0.17763.0) |
API contract |
Windows.ApplicationModel.Calls.CallsPhoneContract (eingeführt in v1.0)
Windows.ApplicationModel.Calls.Background.CallsBackgroundContract (eingeführt in v1.0) |
Konstruktoren
PhoneTrigger(PhoneTriggerType, Boolean) |
Initialisiert eine neue instance der PhoneTrigger-Klasse. |
Eigenschaften
OneShot |
Ruft einen booleschen Wert ab, der angibt, ob der Trigger eine einmalige Benachrichtigung ist. |
TriggerType |
Ruft den Typ des vom Trigger angegebenen Telefonereignisses ab. |