UsbConfigurationDescriptor.TryParse Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the first 9 bytes of a USB configuration descriptor in a UsbConfigurationDescriptor object that is contained in a UsbDescriptor object.
public:
static bool TryParse(UsbDescriptor ^ descriptor, [Out] UsbConfigurationDescriptor ^ & parsed);
static bool TryParse(UsbDescriptor const& descriptor, [Out] UsbConfigurationDescriptor const& & parsed);
public static bool TryParse(UsbDescriptor descriptor, out UsbConfigurationDescriptor parsed);
Public Shared Function TryParse (descriptor As UsbDescriptor, ByRef parsed As UsbConfigurationDescriptor) As Boolean
Parameters
- descriptor
- UsbDescriptor
The UsbDescriptor object to parse.
- parsed
- UsbConfigurationDescriptor
Receives a UsbConfigurationDescriptor object.
Returns
Boolean
bool
True, if a UsbConfigurationDescriptor object was found in the specified UsbDescriptor object. Otherwise, false.