PeerFinder.ConnectionRequested | connectionrequested event

Applies to Windows and Windows Phone

Occurs when a remote peer requests a connection using the ConnectAsync method.

Syntax


public:
static event TypedEventHandler<Object, ConnectionRequestedEventArgs>^ ConnectionRequested {
   Windows::Foundation::EventRegistrationToken add(TypedEventHandler<Object, ConnectionRequestedEventArgs>^ value);
   void remove(Windows::Foundation::EventRegistrationToken token);
}

Event information

Delegate TypedEventHandler<Object, ConnectionRequestedEventArgs>

Remarks

The ConnectionRequested event occurs when a remote peer calls the FindAllPeersAsync method, finds the current peer, and passes that peer information to the ConnectAsync method to request a connection.

Important  

The Proximity APIs do not provide authentication. You should avoid exchanging sensitive data with these APIs.

Examples

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

Requirements

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
FindAllPeersAsync
ConnectAsync
Proximity and Tapping (JavaScript)
Proximity and Tapping (C#/VB/C++)
Samples
Proximity sample

 

 

Show:
© 2014 Microsoft