NetworkOperatorNotificationTrigger Class

Definition

Represents a mobile network operator notification trigger.

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 sealed
/// [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 sealed
[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
Inheritance
NetworkOperatorNotificationTrigger
Attributes
Implements

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

In preference to using NetworkOperatorNotificationTrigger and handling a DataPlanThresholdReached value for NetworkOperatorEventMessageType, you should use NetworkOperatorDataUsageTrigger. You can register NetworkOperatorDataUsageTrigger by using standard background trigger idioms.

Note

This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).

Constructors

NetworkOperatorNotificationTrigger(String)

Initializes a new instance of a mobile network operator notification.

Properties

NetworkAccountId

Gets the account identifier for the mobile network operator notification trigger.

Applies to

See also