HidDevice.GetBooleanControlDescriptions(HidReportType, UInt16, UInt16) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
擷取指定 HID 裝置之布林控制項的描述。
public:
virtual IVectorView<HidBooleanControlDescription ^> ^ GetBooleanControlDescriptions(HidReportType reportType, unsigned short usagePage, unsigned short usageId) = GetBooleanControlDescriptions;
IVectorView<HidBooleanControlDescription> GetBooleanControlDescriptions(HidReportType const& reportType, uint16_t const& usagePage, uint16_t const& usageId);
public IReadOnlyList<HidBooleanControlDescription> GetBooleanControlDescriptions(HidReportType reportType, ushort usagePage, ushort usageId);
function getBooleanControlDescriptions(reportType, usagePage, usageId)
Public Function GetBooleanControlDescriptions (reportType As HidReportType, usagePage As UShort, usageId As UShort) As IReadOnlyList(Of HidBooleanControlDescription)
參數
- reportType
- HidReportType
指定要求控制項描述的報表類型。
傳回
HidBooleanControlDescription物件的向量。
備註
布林值控制項是傳回 On/Off 值的簡單控制項。 (它們有時稱為按鈕控制項。)