ConnectionSession ConnectionSession ConnectionSession ConnectionSession Class

The ConnectionSession class is used to represent a connection to an access point established with AcquireConnectionAsync(CellularApnContext).

Syntax

Declaration

public sealed class ConnectionSessionpublic sealed class ConnectionSessionPublic NotInheritable Class ConnectionSessionpublic sealed class ConnectionSession

Properties summary

Retrieves the ConnectionProfile associated with the connection session.

Methods summary

Closes the connection to the access point.

Properties

  • ConnectionProfile
    ConnectionProfile
    ConnectionProfile
    ConnectionProfile

    Retrieves the ConnectionProfile associated with the connection session.

    public ConnectionProfile ConnectionProfile { get; }public ConnectionProfile ConnectionProfile { get; }Public ReadOnly Property ConnectionProfile As ConnectionProfilepublic ConnectionProfile ConnectionProfile { get; }

    Property Value

Methods

  • Close()
    Close()
    Close()
    Close()

    Closes the connection to the access point.

    public void Close()public void Close()Public Function Close() As voidpublic void Close()

    Remarks

    This method is used by Windows Store app written in JavaScript. For apps written using the .NET Framework 4.5 in C# and VB.NET, the Close() method is exposed as the Dispose method on the ConnectionSession. For apps written in C++, the this method is called when using the delete keyword on the object.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Networking.Connectivity.dll