Share via


PeerFinder.AllowBluetooth Property

Definition

Specifies whether the PeerFinder class may connect a StreamSocket object by using Bluetooth.

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

static void AllowBluetooth(bool value);
public static bool AllowBluetooth { get; set; }
var boolean = PeerFinder.allowBluetooth;
PeerFinder.allowBluetooth = boolean;
Public Shared Property AllowBluetooth As Boolean

Property Value

Boolean

bool

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

Windows requirements

App capabilities
ID_CAP_NETWORKING [Windows Phone] proximity ID_CAP_PROXIMITY [Windows Phone]

Applies to

See also