Windows Dev Center

PeerFinder.Stop | stop method

Stops advertising for a peer connection.

Syntax


public:
static void Stop()

Parameters

This method has no parameters.

Remarks

You can call the Stop method to stop the PeerFinder when you no longer want to advertise for or accept new triggered (tapped) or browsed connections. Stop does not close an existing connection. However, the Stop method will cancel outstanding calls to the ConnectAsync method and triggered connection requests. The Stop method does not wait for the cancellation to complete.

Examples

No code example is currently available or this language may not be supported.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Capabilities

proximity

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

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

Capabilities

proximity
ID_CAP_PROXIMITY [Windows Phone]
ID_CAP_NETWORKING [Windows Phone]

See also

PeerFinder
Start
Proximity and Tapping (JavaScript)
Proximity and Tapping (C#/VB/C++)
Samples
Proximity sample

 

 

Show:
© 2015 Microsoft