Skip to main content
UsbConfigurationDescriptor.TryParse | tryParse method

Applies to Windows only

Retrieves the first 9 bytes of a USB configuration descriptor in a UsbConfigurationDescriptor object that is contained in a UsbDescriptor object.

Syntax


var result = Windows.Devices.Usb.UsbConfigurationDescriptor.tryParse(descriptor);
var parsed = result.parsed;
var boolean = result.boolean;

public static bool TryParse(
  UsbDescriptor descriptor, 
  out UsbConfigurationDescriptor parsed
)

Public Shared Function TryParse(
  descriptor As UsbDescriptor,  
  <OutAttribute> ByRef parsed As UsbConfigurationDescriptor 
) As Boolean

public:
static bool TryParse(
  UsbDescriptor^ descriptor, 
  [OutAttribute] UsbConfigurationDescriptor^ parsed
)

Parameters

descriptor

Type: UsbDescriptor

The UsbDescriptor object to parse.

parsed (out parameter)

Type: UsbConfigurationDescriptor

Receives a UsbConfigurationDescriptor object.

Return value

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

True, if a UsbConfigurationDescriptor object was found in the specified UsbDescriptor object. Otherwise, false.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.Devices.Usb
Windows::Devices::Usb [C++]

Metadata

Windows.winmd

See also

UsbConfigurationDescriptor