NetworkOperatorNotificationTrigger 类

定义

表示移动网络运营商通知触发器。

public ref class NetworkOperatorNotificationTrigger sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Background.INetworkOperatorNotificationTriggerFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
class NetworkOperatorNotificationTrigger final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
/// [Windows.Foundation.Metadata.Activatable(Windows.ApplicationModel.Background.INetworkOperatorNotificationTriggerFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class NetworkOperatorNotificationTrigger final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Background.INetworkOperatorNotificationTriggerFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
public sealed class NetworkOperatorNotificationTrigger
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.ApplicationModel.Background.INetworkOperatorNotificationTriggerFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class NetworkOperatorNotificationTrigger
function NetworkOperatorNotificationTrigger(networkAccountId)
Public NotInheritable Class NetworkOperatorNotificationTrigger
继承
Object IInspectable NetworkOperatorNotificationTrigger
属性
实现

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

应使用 NetworkOperatorNotificationTrigger 并处理 NetworkOperatorEventMessageTypeDataPlanThresholdReached 值,应使用 NetworkOperatorDataUsageTrigger。 可以使用标准后台触发器习惯注册 NetworkOperatorDataUsageTrigger

备注

此类不是敏捷的,这意味着需要考虑其线程模型和封送行为。 有关详细信息,请参阅线程处理和封送处理 (C++/CX) 并在多线程环境中使用Windows 运行时对象 (.NET)

构造函数

NetworkOperatorNotificationTrigger(String)

初始化移动网络运营商通知的新实例。

属性

NetworkAccountId

获取移动网络运营商通知触发器的帐户标识符。

适用于

另请参阅