Bagikan melalui


HidDevice.GetFeatureReportAsync Metode

Definisi

Overload

GetFeatureReportAsync(UInt16)

Secara asinkron mengambil laporan fitur, yang diidentifikasi oleh parameter reportId , untuk perangkat HID yang diberikan.

GetFeatureReportAsync()

Secara asinkron mengambil laporan fitur pertama, atau default dari perangkat HID yang diberikan.

GetFeatureReportAsync(UInt16)

Secara asinkron mengambil laporan fitur, yang diidentifikasi oleh parameter reportId , untuk perangkat HID yang diberikan.

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)

Parameter

reportId
UInt16

unsigned short

uint16_t

Mengidentifikasi laporan fitur yang diminta.

Mengembalikan

Objek HidFeatureReport .

Atribut

Keterangan

Perangkat harus dibuka dengan FileAccessMode.Read atau FileAccessMode.ReadWrite.

Lihat juga

Berlaku untuk

GetFeatureReportAsync()

Secara asinkron mengambil laporan fitur pertama, atau default dari perangkat HID yang diberikan.

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)

Mengembalikan

Objek HidFeatureReport .

Atribut

Keterangan

Contoh metode ini mengambil laporan fitur pertama yang tersedia.

Perangkat harus dibuka dengan FileAccessMode.Read atau FileAccessMode.ReadWrite.

Berlaku untuk