HidDevice.GetFeatureReportAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetFeatureReportAsync(UInt16) |
針對指定的 HID 裝置,以非同步方式擷取 reportId 參數所識別的功能報表。 |
GetFeatureReportAsync() |
以非同步方式從指定的 HID 裝置擷取第一個或預設的功能報告。 |
GetFeatureReportAsync(UInt16)
針對指定的 HID 裝置,以非同步方式擷取 reportId 參數所識別的功能報表。
public:
virtual IAsyncOperation<HidFeatureReport ^> ^ GetFeatureReportAsync(unsigned short reportId) = GetFeatureReportAsync;
/// [Windows.Foundation.Metadata.Overload("GetFeatureReportByIdAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<HidFeatureReport> GetFeatureReportAsync(uint16_t const& reportId);
[Windows.Foundation.Metadata.Overload("GetFeatureReportByIdAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<HidFeatureReport> GetFeatureReportAsync(ushort reportId);
function getFeatureReportAsync(reportId)
Public Function GetFeatureReportAsync (reportId As UShort) As IAsyncOperation(Of HidFeatureReport)
參數
- reportId
-
UInt16
unsigned short
uint16_t
識別要求的功能報告。
傳回
HidFeatureReport物件。
- 屬性
備註
裝置必須以 FileAccessMode.Read 或 FileAccessMode.ReadWrite開啟。
另請參閱
適用於
GetFeatureReportAsync()
以非同步方式從指定的 HID 裝置擷取第一個或預設的功能報告。
public:
virtual IAsyncOperation<HidFeatureReport ^> ^ GetFeatureReportAsync() = GetFeatureReportAsync;
/// [Windows.Foundation.Metadata.Overload("GetFeatureReportAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<HidFeatureReport> GetFeatureReportAsync();
[Windows.Foundation.Metadata.Overload("GetFeatureReportAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<HidFeatureReport> GetFeatureReportAsync();
function getFeatureReportAsync()
Public Function GetFeatureReportAsync () As IAsyncOperation(Of HidFeatureReport)
傳回
HidFeatureReport物件。
- 屬性
備註
此方法的這個實例會擷取第一個可用的功能報表。
裝置必須以 FileAccessMode.Read 或 FileAccessMode.ReadWrite開啟。