共用方式為


ProximitySensorReading.IsDetected 屬性

定義

取得鄰近感應器是否偵測到物件。

public:
 property bool IsDetected { bool get(); };
bool IsDetected();
public bool IsDetected { get; }
var boolean = proximitySensorReading.isDetected;
Public ReadOnly Property IsDetected As Boolean

屬性值

Boolean

bool

如果鄰近感應器偵測到物件,則為 True;否則為 false。

適用於