CustomDevice 类

定义

表示自定义设备。

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
继承
Object Platform::Object IInspectable CustomDevice
属性

Windows 要求

设备系列
Windows Desktop Extension SDK (在 10.0.10240.0 中引入)
Windows 10 Fall Creators Update (在 10.0.16299.0 中引入)
API contract
Windows.Devices.Custom.CustomDeviceContract (在 v1.0 中引入)

属性

InputStream

输入流。

OutputStream

输出流。

方法

FromIdAsync(String, DeviceAccessMode, DeviceSharingMode)

为指定的 DeviceInformation.Id 异步创建 CustomDevice 对象。

GetDeviceSelector(Guid)

获取设备选择器。

SendIOControlAsync(IIOControlCode, IBuffer, IBuffer)

发送 IO 控制代码。

TrySendIOControlAsync(IIOControlCode, IBuffer, IBuffer)

发送 IO 控制代码。 一个指示操作是否成功的返回值。

适用于

另请参阅