# 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/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/IInteractionService.cs#L408)

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/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/IInteractionService.cs#L434)

Gets the names of all inputs in the collection.

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