Share via


IControlChannelTriggerResetEventDetails 介面

定義

由 ControlChannelReset事件之背景訊息代理程式基礎結構具現化的物件,表示已重設ControlChannelTrigger

注意

Windows Phone不支援此介面。

public interface class IControlChannelTriggerResetEventDetails
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Networking.Sockets.ControlChannelTriggerContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1750139790, 36548, 17150, 155, 178, 33, 233, 27, 123, 252, 177)]
struct IControlChannelTriggerResetEventDetails
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Networking.Sockets.ControlChannelTriggerContract), 65536)]
[Windows.Foundation.Metadata.Guid(1750139790, 36548, 17150, 155, 178, 33, 233, 27, 123, 252, 177)]
public interface IControlChannelTriggerResetEventDetails
Public Interface IControlChannelTriggerResetEventDetails
屬性

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.10240.0 引進)
Windows Mobile Extension SDK (已於 10.0.10240.0 引進)
API contract
Windows.Networking.Sockets.ControlChannelTriggerContract (已於 v1.0 引進)

備註

IControlChannelTriggerResetEventDetails 物件是由設定為ControlChannelReset事件之SystemTriggerType的背景訊息代理程式基礎結構具現化。

應用程式必須向系統事件代理程式註冊,背景工作才能接收 ControlChannelReset 事件。 在IBackgroundTaskRun方法中,taskInstance參數包含可轉換成 IControlChannelTriggerResetEventDetails 介面的IBackgroundTaskInstance。 然後,應用程式可以使用 IControlChannelTriggerResetEventDetails 物件來判斷 ControlChannelTrigger 重設的原因。 應用程式也可以使用 IControlChannelTriggerResetEventDetails 物件來判斷硬體位置或軟體位置是否受 ControlChannelReset 事件影響。

注意

應用程式必須先放在鎖定畫面上,才能使用 SystemTriggerType 設定為 ControlChannelReset 事件成功註冊背景工作。

屬性

HardwareSlotReset

值,指出硬體位置是否受到 ControlChannelTrigger 重設事件影響。

注意

Windows Phone不支援 IControlChannelTriggerResetEventDetails 介面。

ResetReason

值,指出 重設 ControlChannelTrigger 的原因。

注意

Windows Phone不支援 IControlChannelTriggerResetEventDetails 介面。

SoftwareSlotReset

值,指出軟體位置是否受 ControlChannelTrigger 重設事件影響。

注意

Windows Phone不支援 IControlChannelTriggerResetEventDetails 介面。

適用於

另請參閱