Dela via


ConnectionSession Class

Definition

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

public ref class ConnectionSession sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class ConnectionSession final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class ConnectionSession : System.IDisposable
Public NotInheritable Class ConnectionSession
Implements IDisposable
Inheritance
Object Platform::Object IInspectable ConnectionSession
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

ConnectionProfile

Retrieves the ConnectionProfile associated with the connection session.

Methods

Close()

Closes the connection to the access point.

Dispose()

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

Applies to

See also