---
title: "subscript(_:)"
framework: virtualization
role: symbol
role_heading: Instance Subscript
path: "virtualization/vzvirtioconsoleportconfigurationarray/subscript(_:)"
---

# subscript(_:)

Returns the Virtio console port configuration as the specified index.

## Declaration

```swift
subscript(portIndex: Int) -> VZVirtioConsolePortConfiguration? { get set }
```

## Parameters

- `portIndex`: The index of the configuration to retrieve.

## Return Value

Return Value The VZVirtioConsolePortConfiguration, or nil is the index exceeds the number of configurations in the array.
