Share via


PeerFinder.AllowBluetooth 属性

定义

指定 PeerFinder 类是否可以使用蓝牙连接 StreamSocket 对象。

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

属性值

Boolean

bool

如此 如果 PeerFinder 类可以使用蓝牙连接 StreamSocket 对象;否则为 false。 默认值为 true。

Windows 要求

应用功能
ID_CAP_NETWORKING [Windows Phone] proximity ID_CAP_PROXIMITY [Windows Phone]

适用于

另请参阅