CellularApnContext CellularApnContext CellularApnContext CellularApnContext Class

Definition

This class contains properties used to specify an Access Point Name (APN) for a 3GPP based cellular Data Connection (PDP context). A CellularApnContext object is passed with a AcquireConnectionAsync call to establish a connection to a specific access point.

public : sealed class CellularApnContext : ICellularApnContext
public sealed class CellularApnContext : ICellularApnContext
Public NotInheritable Class CellularApnContext Implements ICellularApnContext
var cellularApnContext = new cellularApnContext();
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

CellularApnContext() CellularApnContext() CellularApnContext() CellularApnContext()

Creates an instance of CellularApnContext.

public : CellularApnContext()
public CellularApnContext()
Public Sub New()
var cellularApnContext = new cellularApnContext();

Properties

AccessPointName AccessPointName AccessPointName AccessPointName

Indicates the name of the access point to establish a connection with.

public : Platform::String AccessPointName { get; set; }
public string AccessPointName { get; set; }
Public ReadWrite Property AccessPointName As string
var string = cellularApnContext.accessPointName;
cellularApnContext.accessPointName = string;
Value
Platform::String string string string

The access point name.

AuthenticationType AuthenticationType AuthenticationType AuthenticationType

Indicates the authentication method, as defined by CellularApnAuthenticationType, that is used by the access point.

public : CellularApnAuthenticationType AuthenticationType { get; set; }
public CellularApnAuthenticationType AuthenticationType { get; set; }
Public ReadWrite Property AuthenticationType As CellularApnAuthenticationType
var cellularApnAuthenticationType = cellularApnContext.authenticationType;
cellularApnContext.authenticationType = cellularApnAuthenticationType;

Remarks

This property can have one of the following values:

ValueDescription
NONENo authentication protocol.
PAPUnencrypted password authentication.
CHAPChallenge Handshake Authentication Protocol(CHAP).
MsCHAPv2Use Microsoft’s Challenge Handshake Authentication Protocol(CHAP) v2.0.

IsCompressionEnabled IsCompressionEnabled IsCompressionEnabled IsCompressionEnabled

Indicates if data compression will be used at the data link for header and data transfer.

public : Platform::Boolean IsCompressionEnabled { get; set; }
public bool IsCompressionEnabled { get; set; }
Public ReadWrite Property IsCompressionEnabled As bool
var bool = cellularApnContext.isCompressionEnabled;
cellularApnContext.isCompressionEnabled = bool;
Value
Platform::Boolean bool bool bool

A Boolean value. TRUE if enabled; otherwise FALSE.

Password Password Password Password

Indicates the password used to authenticate when connecting to the access point.

public : Platform::String Password { get; set; }
public string Password { get; set; }
Public ReadWrite Property Password As string
var string = cellularApnContext.password;
cellularApnContext.password = string;
Value
Platform::String string string string

The password associated with the user name.

ProviderId ProviderId ProviderId ProviderId

Indicates the provider ID associated with the access point.

public : Platform::String ProviderId { get; set; }
public string ProviderId { get; set; }
Public ReadWrite Property ProviderId As string
var string = cellularApnContext.providerId;
cellularApnContext.providerId = string;
Value
Platform::String string string string

The provider ID.

UserName UserName UserName UserName

Indicates the user name used to authenticate when connecting to the access point.

public : Platform::String UserName { get; set; }
public string UserName { get; set; }
Public ReadWrite Property UserName As string
var string = cellularApnContext.userName;
cellularApnContext.userName = string;
Value
Platform::String string string string

The user name.