Skip to main content
PeerFinder.AllowInfrastructure | allowInfrastructure property

Applies to Windows and Windows Phone

Specifies whether the PeerFinder class may connect to a StreamSocket object using TCP/IP.

Syntax


var allowInfrastructure = Windows.Networking.Proximity.PeerFinder.allowInfrastructure;
Windows.Networking.Proximity.PeerFinder.allowInfrastructure = allowInfrastructure;

public static bool AllowInfrastructure { get; set; }

Public Shared Property AllowInfrastructure As Boolean

public:
static property bool AllowInfrastructure { 
   bool get();
   void set (bool value);
}

Property value

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

True if the PeerFinder class may connect to a StreamSocket object using TCP/IP; otherwise false.

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