Share via


ConnectivityManager.AcquireConnectionAsync(CellularApnContext) Method

Definition

Establishes a connection to a specific access point on a network. The request is defined using a CellularApnContext object.

Note

This functionality is available only to mobile operator apps and UWP apps given privileged access by mobile network operators. Mobile operators must enable the cellularDeviceControl restricted capability to use this API.

public:
 static IAsyncOperation<ConnectionSession ^> ^ AcquireConnectionAsync(CellularApnContext ^ cellularApnContext);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<ConnectionSession> AcquireConnectionAsync(CellularApnContext const& cellularApnContext);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<ConnectionSession> AcquireConnectionAsync(CellularApnContext cellularApnContext);
function acquireConnectionAsync(cellularApnContext)
Public Shared Function AcquireConnectionAsync (cellularApnContext As CellularApnContext) As IAsyncOperation(Of ConnectionSession)

Parameters

cellularApnContext
CellularApnContext

Provides specific details about the APN.

Returns

The established APN connection.

Attributes

Windows requirements

App capabilities
cellularDeviceControl

Applies to

See also