IOControlCode 類別

定義

表示控制項程式碼。

public ref class IOControlCode sealed : IIOControlCode
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Custom.IIOControlCodeFactory, 65536, Windows.Devices.Custom.CustomDeviceContract)]
/// [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 IOControlCode final : IIOControlCode
/// [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)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Custom.IIOControlCodeFactory, 65536, "Windows.Devices.Custom.CustomDeviceContract")]
class IOControlCode final : IIOControlCode
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Custom.IIOControlCodeFactory), 65536, typeof(Windows.Devices.Custom.CustomDeviceContract))]
[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 IOControlCode : IIOControlCode
[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)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Custom.IIOControlCodeFactory), 65536, "Windows.Devices.Custom.CustomDeviceContract")]
public sealed class IOControlCode : IIOControlCode
function IOControlCode(deviceType, function, accessMode, bufferingMethod)
Public NotInheritable Class IOControlCode
Implements IIOControlCode
繼承
Object Platform::Object IInspectable IOControlCode
屬性
實作

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 引進)

建構函式

IOControlCode(UInt16, UInt16, IOControlAccessMode, IOControlBufferingMethod)

控制項程式碼。

屬性

AccessMode

存取模式。

BufferingMethod

緩衝方法。

ControlCode

控制項程式碼。

DeviceType

裝置類型。

Function

函式。

適用於

另請參閱