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 コントロール コードを送信します。 戻り値は、演算が成功したかどうかを示します。

適用対象

こちらもご覧ください