CellularApnContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This class contains properties used to specify an Access Point Name (APN) for a 3GPP based cellular Data Connection (PDP context).
public ref class CellularApnContext sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class CellularApnContext final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class CellularApnContext final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class CellularApnContext
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class CellularApnContext
function CellularApnContext()
Public NotInheritable Class CellularApnContext
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Remarks
A CellularApnContext object is passed with a ConnectivityManager.AcquireConnectionAsync call to establish a connection to a specific access point.
Version history
Windows version | SDK version | Value added |
---|---|---|
1803 | 17134 | ProfileName |
Constructors
CellularApnContext() |
Creates an instance of CellularApnContext. |
Properties
AccessPointName |
Indicates the name of the access point to establish a connection with. |
AuthenticationType |
Indicates the authentication method, as defined by CellularApnAuthenticationType, that is used by the access point. |
IsCompressionEnabled |
Indicates if data compression will be used at the data link for header and data transfer. |
Password |
Indicates the password used to authenticate when connecting to the access point. |
ProfileName |
Gets the name of a cellular profile. |
ProviderId |
Indicates the provider ID associated with the access point. |
UserName |
Indicates the user name used to authenticate when connecting to the access point. |