BackgroundTaskBuilder.IsNetworkRequested Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates whether to keep the network up while running the background task.
public:
property bool IsNetworkRequested { bool get(); void set(bool value); };
bool IsNetworkRequested();
void IsNetworkRequested(bool value);
public bool IsNetworkRequested { get; set; }
var boolean = backgroundTaskBuilder.isNetworkRequested;
backgroundTaskBuilder.isNetworkRequested = boolean;
Public Property IsNetworkRequested As Boolean
Property Value
bool
True
: ensure that the network is up while running the background task. False
, otherwise.
Remarks
This property is applicable to desktops computers on which disconnected standby is implemented. Setting this property to true
keeps the network up while the background task is executing, even if the device has entered Connected Standby mode.
The WinMain application components in Desktop Bridge applications may not execute code in disconnected standby or connected standby. WinMain components using COM background tasks will not observe any behavioral differences when setting this flag.