共用方式為


DeviceWatcher.GetBackgroundTrigger 方法

定義

取得 DeviceWatcherTrigger 物件監視,以監視裝置清單的變更。

public:
 virtual DeviceWatcherTrigger ^ GetBackgroundTrigger(IIterable<DeviceWatcherEventKind> ^ requestedEventKinds) = GetBackgroundTrigger;
DeviceWatcherTrigger GetBackgroundTrigger(IIterable<DeviceWatcherEventKind> const& requestedEventKinds);
public DeviceWatcherTrigger GetBackgroundTrigger(IEnumerable<DeviceWatcherEventKind> requestedEventKinds);
function getBackgroundTrigger(requestedEventKinds)
Public Function GetBackgroundTrigger (requestedEventKinds As IEnumerable(Of DeviceWatcherEventKind)) As DeviceWatcherTrigger

參數

requestedEventKinds

IIterable<DeviceWatcherEventKind>

IEnumerable<DeviceWatcherEventKind>

您想要監視的特定更新清單。

傳回

監視所指定變更的監看員觸發程式。

適用於