-api-id | -api-type |
---|---|
M:Windows.Networking.Sockets.ControlChannelTrigger.#ctor(System.String,System.UInt32,Windows.Networking.Sockets.ControlChannelTriggerResourceType) |
winrt method |
Creates a new ControlChannelTrigger object with a control channel trigger ID, a value for the server keep-alive interval, and the resource type requested for the control channel trigger.
Note
The ControlChannelTrigger class is not supported on Windows Phone.
A string used to differentiate various control channel triggers on the local computer. The maximum length allowed for this string is 64 characters.
The keep-alive interval, in minutes, registered with the system to indicate when the app and network connections used should wake up.
The minimum value that can be set for this parameter is 15 minutes. The maximum value that can be set is 1439 minutes (approximately 24 hours).
The resource type requested for the control channel trigger.
The [ControlChannelTrigger(String, UInt32, ControlChannelTriggerResourceType) constructor allows an app to create a ControlChannelTrigger object with a specific the resource type requested for the control channel trigger. If an app needs a hardware slot to support connected standby, then the resourceRequestType should be set to RequestHardwareSlot.
How to set background connectivity options, ControlChannelTrigger(String, UInt32), ControlChannelTriggerResourceType