ConnectionSession ConnectionSession ConnectionSession ConnectionSession ConnectionSession Class


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

public : sealed class ConnectionSession : IClosable
struct winrt::Windows::Networking::Connectivity::ConnectionSession : IClosable
public sealed class ConnectionSession : IDisposable
Public NotInheritable Class ConnectionSession Implements IDisposable
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


ConnectionProfile ConnectionProfile ConnectionProfile ConnectionProfile ConnectionProfile

Retrieves the ConnectionProfile associated with the connection session.


Close() Close() Close() Close() Close()

Closes the connection to the access point.

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

See also