ConnectionSession class

Applies to Windows and Windows Phone

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

Syntax


/* For information about creating or accessing this object, see Remarks. */

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06030000)]

Members

The ConnectionSession class has these types of members:

Methods

The ConnectionSession class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
Close [C++, JavaScript]Closes the connection to the access point.
Dispose [C#, VB]Performs tasks associated with freeing, releasing, or resetting unmanaged resources.

 

Properties

The ConnectionSession class has these properties.

PropertyAccess typeDescription

ConnectionProfile

Read-onlyRetrieves the ConnectionProfile associated with the connection session.

 

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

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

Namespace

Windows.Networking.Connectivity
Windows::Networking::Connectivity [C++]

Metadata

Windows.winmd

See also

AcquireConnectionAsync
Object
IClosable

 

 

Show:
© 2014 Microsoft