Share via


UsbEndpointDescriptor.TryParse(UsbDescriptor, UsbEndpointDescriptor) Method

Definition

Retrieves the USB endpoint descriptor in a UsbEndpointDescriptor object that is contained in a UsbDescriptor object.

public:
 static bool TryParse(UsbDescriptor ^ descriptor, [Out] UsbEndpointDescriptor ^ & parsed);
 static bool TryParse(UsbDescriptor const& descriptor, [Out] UsbEndpointDescriptor const& & parsed);
public static bool TryParse(UsbDescriptor descriptor, out UsbEndpointDescriptor parsed);
Public Shared Function TryParse (descriptor As UsbDescriptor, ByRef parsed As UsbEndpointDescriptor) As Boolean

Parameters

descriptor
UsbDescriptor

The UsbDescriptor object to parse.

parsed
UsbEndpointDescriptor

Receives a UsbEndpointDescriptor object.

Returns

Boolean

bool

True, if the specified UsbDescriptor object is a USB endpoint descriptor. Otherwise, false.

Applies to