CustomDevice CustomDevice CustomDevice CustomDevice CustomDevice Class

Definition

Represents a custom device.

public : sealed class CustomDevice
struct winrt::Windows::Devices::Custom::CustomDevice
public sealed class CustomDevice
Public NotInheritable Class CustomDevice
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0) Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Devices.Custom.CustomDeviceContract (introduced v1)

Properties

InputStream InputStream InputStream InputStream InputStream

The input stream.

OutputStream OutputStream OutputStream OutputStream OutputStream

The output stream.

Methods

FromIdAsync(String, DeviceAccessMode, DeviceSharingMode) FromIdAsync(String, DeviceAccessMode, DeviceSharingMode) FromIdAsync(String, DeviceAccessMode, DeviceSharingMode) FromIdAsync(String, DeviceAccessMode, DeviceSharingMode) FromIdAsync(String, DeviceAccessMode, DeviceSharingMode)

Creates a CustomDevice object asynchronously for the specified DeviceInformation.Id.

GetDeviceSelector(Guid) GetDeviceSelector(Guid) GetDeviceSelector(Guid) GetDeviceSelector(Guid) GetDeviceSelector(Guid)

Gets a device selector.

SendIOControlAsync(IIOControlCode, IBuffer, IBuffer) SendIOControlAsync(IIOControlCode, IBuffer, IBuffer) SendIOControlAsync(IIOControlCode, IBuffer, IBuffer) SendIOControlAsync(IIOControlCode, IBuffer, IBuffer) SendIOControlAsync(IIOControlCode, IBuffer, IBuffer)

Sends an IO control code.

TrySendIOControlAsync(IIOControlCode, IBuffer, IBuffer) TrySendIOControlAsync(IIOControlCode, IBuffer, IBuffer) TrySendIOControlAsync(IIOControlCode, IBuffer, IBuffer) TrySendIOControlAsync(IIOControlCode, IBuffer, IBuffer) TrySendIOControlAsync(IIOControlCode, IBuffer, IBuffer)

Sends an IO control code. A return value indicates whether the operation succeeded.

See also