---
title: "IOUSBGetContainerIDDescriptor(_:)"
framework: iousbhost
role: symbol
role_heading: Function
path: "iousbhost/iousbgetcontaineriddescriptor(_:)"
---

# IOUSBGetContainerIDDescriptor(_:)

Obtains the first container ID capability descriptor in a BOS descriptor.

## Declaration

```swift
func IOUSBGetContainerIDDescriptor(_ bosDescriptor: UnsafePointer<IOUSBBOSDescriptor>!) -> UnsafePointer<IOUSBDeviceCapabilityContainerID>!
```

## Parameters

- `bosDescriptor`: A BOS descriptor that contains the descriptors to iterate through.

## Return Value

Return Value A container ID capability descriptor pointer, or nil if no matching descriptor returns.

## Discussion

Discussion This method uses IOUSBGetNextCapabilityDescriptorWithType(_:_:_:) to find the first container ID capability descriptor.

## See Also

### BOS Descriptor Parsing

- [IOUSBGetUSB20ExtensionDeviceCapabilityDescriptor(_:)](iousbhost/iousbgetusb20extensiondevicecapabilitydescriptor(_:).md)
- [IOUSBGetNextCapabilityDescriptorWithType(_:_:_:)](iousbhost/iousbgetnextcapabilitydescriptorwithtype(_:_:_:).md)
- [IOUSBGetNextCapabilityDescriptor(_:_:)](iousbhost/iousbgetnextcapabilitydescriptor(_:_:).md)
- [IOUSBGetSuperSpeedDeviceCapabilityDescriptor(_:)](iousbhost/iousbgetsuperspeeddevicecapabilitydescriptor(_:).md)
- [IOUSBGetBillboardDescriptor(_:)](iousbhost/iousbgetbillboarddescriptor(_:).md)
