CustomDevice Kelas

Definisi

Mewakili perangkat kustom.

public ref class CustomDevice sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.Custom.CustomDeviceContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CustomDevice final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.Custom.CustomDeviceContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CustomDevice
Public NotInheritable Class CustomDevice
Warisan
Object Platform::Object IInspectable CustomDevice
Atribut

Persyaratan Windows

Rangkaian perangkat
Windows Desktop Extension SDK (diperkenalkan dalam 10.0.10240.0)
Windows 10 Fall Creators Update (diperkenalkan dalam 10.0.16299.0)
API contract
Windows.Devices.Custom.CustomDeviceContract (diperkenalkan dalam v1.0)

Properti

InputStream

Aliran input.

OutputStream

Aliran output.

Metode

FromIdAsync(String, DeviceAccessMode, DeviceSharingMode)

Membuat objek CustomDevice secara asinkron untuk DeviceInformation.Id yang ditentukan.

GetDeviceSelector(Guid)

Mendapatkan pemilih perangkat.

SendIOControlAsync(IIOControlCode, IBuffer, IBuffer)

Mengirim kode kontrol IO.

TrySendIOControlAsync(IIOControlCode, IBuffer, IBuffer)

Mengirim kode kontrol IO. Nilai yang dikembalikan menunjukkan apakah operasi berhasil.

Berlaku untuk

Lihat juga