Windows Dev Center

CustomDevice class

Represents a custom device.

Syntax


var customDevice = Windows.Devices.Custom.CustomDevice;

Members

The CustomDevice class has these types of members:

Methods

The CustomDevice class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
FromIdAsync Creates a CustomDevice object asynchronously for the specified DeviceInformation.Id.
GetDeviceSelector Gets a device selector.
SendIOControlAsync Sends an IO control code.
TrySendIOControlAsync Sends an IO control code. A return value indicates whether the operation succeeded.

 

Properties

The CustomDevice class has these properties.

PropertyAccess typeDescription

InputStream

Read-onlyThe input stream.

OutputStream

Read-onlyThe output stream.

 

Requirements (Windows 10 device family)

Device family

Desktop

API contract

Windows.Devices.Custom.CustomDeviceContract, introduced version 1.0

Namespace

Windows.Devices.Custom
Windows::Devices::Custom [C++]

Metadata

Windows.Devices.Custom.CustomDeviceContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

None supported

Namespace

Windows.Devices.Custom
Windows::Devices::Custom [C++]

Metadata

Windows.winmd

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06030000)]

See also

Object

 

 

Show:
© 2015 Microsoft