PeerInformation class

PeerInformation class

Contains information that identifies a peer.

Syntax


public ref class PeerInformation sealed 

Members

The PeerInformation class has these types of members:

Methods

The PeerInformation class inherits methods from the Object class (C#/VB/C++).

Properties

The PeerInformation class has these properties.

PropertyAccess typeDescription

DiscoveryData

Read/write

Gets or sets the name that identifies your computer to remote peers.

DisplayName

Read-only

Gets the display name of the peer.

Id

Read-only

Gets the app id for the peer app.

 

Remarks

A PeerInformation instance is created when you call the FindAllPeersAsync method, and then passed to the ConnectionRequested event. You can pass that instance to the ConnectAsync method to accept a connection request from a peer.

Examples

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

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0 [for Xbox, see UWP features that aren't yet supported on Xbox]

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 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

Capabilities

proximity
ID_CAP_PROXIMITY [Windows Phone]

Attributes

[MarshalingBehavior(Agile)]
[Version(0x06020000)]

See also

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

 

 

Show:
© 2016 Microsoft