CustomDevice Classe

Définition

Représente un appareil personnalisé.

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
Héritage
Object Platform::Object IInspectable CustomDevice
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows Desktop Extension SDK (introduit dans 10.0.10240.0)
Windows 10 Fall Creators Update (introduit dans 10.0.16299.0)
API contract
Windows.Devices.Custom.CustomDeviceContract (introduit dans v1.0)

Propriétés

InputStream

Flux d'entrée.

OutputStream

Flux de sortie.

Méthodes

FromIdAsync(String, DeviceAccessMode, DeviceSharingMode)

Crée un objet CustomDevice de manière asynchrone pour le DeviceInformation.Id spécifié.

GetDeviceSelector(Guid)

Obtient un sélecteur d’appareil.

SendIOControlAsync(IIOControlCode, IBuffer, IBuffer)

Envoie un code de contrôle d’E/S.

TrySendIOControlAsync(IIOControlCode, IBuffer, IBuffer)

Envoie un code de contrôle d’E/S. Une valeur de retour indique si l'opération a réussi.

S’applique à

Voir aussi