The ConnectionSettings Task allows the user to set and adjust device network settings. The ConnectionSettings task is defined in Microsoft.Phone.Tasks namespace as below:Users can set device network settings to any of the following:If you want to set a Network connection setting to WiFi, you can set it as below:
ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.WiFi;connectionSettingsTask.Show();If you want to set a Network connection setting to Bluetooth, you can set it as below:ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.Bluetooth;connectionSettingsTask.Show();If you want to set a Network connection setting to Cellular, you can set it as below:ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.Cellular;connectionSettingsTask.Show();If you want to set a Network connection setting to Airplane mode, you can set it as below:ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.AirplaneMode;connectionSettingsTask.Show();In this way you can set the network setting of a device using the ConnectionSettings task. I hope this article is useful. Thanks for reading....
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: