UsbDescriptor UsbDescriptor UsbDescriptor UsbDescriptor Class

Provides information about the type of descriptor, its size (in bytes), and gets the descriptor data.

Syntax

Declaration

public sealed class UsbDescriptorpublic sealed class UsbDescriptorPublic NotInheritable Class UsbDescriptor

Remarks

A USB device provides information about itself in data structures called USB descriptors. See section 9.5 of the Universal Serial Bus (USB) specification.

Properties summary

Gets the type of descriptor.

Gets the length of the descriptor.

Methods summary

Reads descriptor data in the caller-supplied buffer.

Properties

  • DescriptorType
    DescriptorType
    DescriptorType
    DescriptorType

    Gets the type of descriptor.

    public byte DescriptorType { get; }public byte DescriptorType { get; }Public ReadOnly Property DescriptorType As byte

    Property Value

    • byte
      byte
      byte
      byte

      The type of descriptor.

  • Length
    Length
    Length
    Length

    Gets the length of the descriptor.

    public byte Length { get; }public byte Length { get; }Public ReadOnly Property Length As byte

    Property Value

    • byte
      byte
      byte
      byte

      The length of the descriptor.

Methods

  • ReadDescriptorBuffer(Windows.Storage.Streams.IBuffer)
    ReadDescriptorBuffer(Windows.Storage.Streams.IBuffer)
    ReadDescriptorBuffer(Windows.Storage.Streams.IBuffer)
    ReadDescriptorBuffer(Windows.Storage.Streams.IBuffer)

    Reads descriptor data in the caller-supplied buffer.

    public void ReadDescriptorBuffer(Windows.Storage.Streams.IBuffer)public void ReadDescriptorBuffer(Windows.Storage.Streams.IBuffer)Public Function ReadDescriptorBuffer(Windows.Storage.Streams.IBuffer) As void

    Parameters

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute

Details

Assembly

Windows.Devices.Usb.dll