PeerFinder.AllowWiFiDirect | allowWiFiDirect property

Applies to Windows only

Specifies whether the PeerFinder class may connect a StreamSocket object by using Wi-Fi Direct.

Syntax


Public Shared Property AllowWiFiDirect As Boolean

Property value

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

True if the PeerFinder class may connect a StreamSocket object by using Wi-Fi Direct; otherwise false. The default is true.

Remarks

Setting the AllowWiFiDirect property to false disables the ability to browse for peer apps using Wi-Fi Direct. You will not be able to use the FindAllPeersAsync method to browse for remote peers.

Windows Phone 8

Wi-Fi Direct is not supported on Windows Phone 8. For more information, see Proximity.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

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