Skip to main content
ConnectionSession.close method

Closes the connection to the access point.

Syntax


connectionSession.close();

Parameters

This method has no parameters.

Remarks

This method is used by Windows Store apps 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.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Networking.Connectivity

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Networking.Connectivity

Metadata

Windows.winmd

See also

ConnectionSession