Windows desktop applications
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CustomDevice class

Represents a custom device.

Syntax


public sealed class 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-only

The input stream.

OutputStream

Read-only

The output stream.

 

Requirements (Windows 10 device family)

Device family

Desktop, introduced version 10.0.10240.0

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:
© 2016 Microsoft