PeerFinder.DisplayName | displayName property

Applies to Windows and Windows Phone

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

Syntax


public:
static property String^ DisplayName { 
   String^ get();
   void set (String^ value);
}

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The name that identifies your computer to remote peers.

Remarks

Important  

Always set the DisplayName property to a unique value for your app before you call the Start method.

The DisplayName property value is included in the PeerInformation instance that's created when a remote peer calls the FindAllPeersAsync method and finds your computer.

If you don't specify a value for the DisplayName property, the computer name is used.

The maximum length of DisplayName is 50 characters.

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

 

 

Show:
© 2014 Microsoft