Connection​Session Connection​Session Connection​Session Class

Definition

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

public : sealed class ConnectionSession : IClosable, IConnectionSessionpublic sealed class ConnectionSession : IDisposable, IConnectionSessionPublic NotInheritable Class ConnectionSession Implements IDisposable, IConnectionSession
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

ConnectionProfile ConnectionProfile ConnectionProfile

Retrieves the ConnectionProfile associated with the connection session.

public : ConnectionProfile ConnectionProfile { get; }public ConnectionProfile ConnectionProfile { get; }Public ReadOnly Property ConnectionProfile As ConnectionProfile
Value
ConnectionProfile ConnectionProfile ConnectionProfile

The connection profile used to define the properties of the access point connection.

Attributes

Methods

Close() Close() Close()

Closes the connection to the access point.

public : void Close()This member is not implemented in C#This member is not implemented in VB.Net
Attributes

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.

Dispose() Dispose() Dispose()

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

This member is not implemented in C++void Dispose()Sub Dispose
Attributes