Adding support for networking (XAML)

Purpose

This topic shows how to set network capabilities required for network access, handle network connections as background tasks, secure and troubleshoot network connections, and handle network exceptions for a Windows Runtime app.

Windows 8.1 provides support for making your Windows Runtime app connected or network-aware. In order to provide a reliable connected experience for users, you will need to define the resource requirements before network access is provided. Networked apps should also accommodate the Windows 8.1 device lifecycle, including frequent transitions between different networks and power states, and apps being suspended and no longer in the foreground. It is also helpful to know how to start troubleshooting if your app encounters network-related errors.

The following scenarios for Windows Store apps are supported:

Set network capabilities required for network access.

Handle long-lived network connections with background tasks.

Secure network connections established by your app.

Use data caching with network operations.

Handle network exceptions in your app.

Troubleshoot and debug network connections established by your app.

This section contains information on adding support for networking to your app.