CustomDevice class

Applies to Windows only

Represents a custom device.

Syntax


var customDevice = Windows.Devices.Custom.CustomDevice;

Attributes

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

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

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

See also

Object

 

 

Show:
© 2014 Microsoft. All rights reserved.