ConnectionSession
ConnectionSession
ConnectionSession
ConnectionSession
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// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
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 ConnectionProfile// You can use this property in JavaScript.
The connection profile used to define the properties of the access point connection.
Methods
Close() 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// You can use this method in JavaScript.
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.