共用方式為


HidDevice.GetFeatureReportAsync 方法

定義

多載

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.ReadFileAccessMode.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.ReadFileAccessMode.ReadWrite開啟。

適用於