0 out of 3 rated this helpful - Rate this topic

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, encryption, or message integrity. Do not use proximity to exchange user sensitive information such as passwords, financial data, text messages, email, photographs, or government id numbers.

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.