# InteractionInputCollection Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [InteractionInputCollection](/reference/api/csharp/aspire.hosting/interactioninputcollection.md)
- Kind: `Properties`
- Members: `2`

A collection of interaction inputs that supports both indexed and name-based access.

## Count

- Name: `Count`
- Modifiers: `get`
- Returns: `int`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/IInteractionService.cs#L436)

Gets the number of inputs in the collection.

```csharp
public int Count { get; }
```

## Names

- Name: `Names`
- Modifiers: `get`
- Returns: `IEnumerable<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/a3766e994fd2cba86c8ac60b8a80268cab7e6383/src/Aspire.Hosting/IInteractionService.cs#L524)

Gets the names of all inputs in the collection.

```csharp
public IEnumerable<string> Names { get; }
```
