共用方式為


MobileBroadbandRegistrationStateChangeTrigger 類別

定義

表示觸發程式,指出行動寬頻註冊狀態何時變更。 例如,當行動裝置轉換至漫遊或移出漫遊時,就會啟動此觸發程式。

這項功能僅適用于行動電信業者提供特殊許可權存取權的電信業者應用程式和 UWP 應用程式。 如需詳細資訊,請參閱 行動寬頻

public ref class MobileBroadbandRegistrationStateChangeTrigger sealed : IBackgroundTrigger
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MobileBroadbandRegistrationStateChangeTrigger final : IBackgroundTrigger
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class MobileBroadbandRegistrationStateChangeTrigger final : IBackgroundTrigger
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MobileBroadbandRegistrationStateChangeTrigger : IBackgroundTrigger
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class MobileBroadbandRegistrationStateChangeTrigger : IBackgroundTrigger
function MobileBroadbandRegistrationStateChangeTrigger()
Public NotInheritable Class MobileBroadbandRegistrationStateChangeTrigger
Implements IBackgroundTrigger
繼承
Object Platform::Object IInspectable MobileBroadbandRegistrationStateChangeTrigger
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

當此觸發程式啟動時,背景工作的 IBackgroundTaskInstance.TriggerDetailsMobileBroadbandNetworkRegistrationStateChangeTriggerDetails 實例。

建構函式

MobileBroadbandRegistrationStateChangeTrigger()

建立 MobileBroadbandRegistrationStateChangeTrigger 物件。

這項功能僅適用于行動電信業者提供特殊許可權存取權的電信業者應用程式和 UWP 應用程式。 如需詳細資訊,請參閱 行動寬頻

適用於

另請參閱