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 : ICellularApnContextpublic sealed class CellularApnContext : ICellularApnContextPublic NotInheritable Class CellularApnContext Implements ICellularApnContext// You can use this class in JavaScript.
- Attributes
| 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()// You can use this method in JavaScript.
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// You can use this property in JavaScript.
- 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// You can use this property in JavaScript.
- Value
- CellularApnAuthenticationType CellularApnAuthenticationType CellularApnAuthenticationType CellularApnAuthenticationType
The authentication type.
Remarks
This property can have one of the following values:
| Value | Description |
|---|---|
| NONE | No authentication protocol. |
| PAP | Unencrypted password authentication. |
| CHAP | Challenge Handshake Authentication Protocol(CHAP). |
| MsCHAPv2 | Use 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// You can use this property in JavaScript.
- 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// You can use this property in JavaScript.
- 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// You can use this property in JavaScript.
- 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// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The user name.