共用方式為


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 控制項程式碼。 傳回指示作業是否成功的值。

適用於

另請參閱