# Sandbox.ComponentList.ForEach

## Overload 1

```csharp
void ForEach(string name, bool includeDisabled, System.Action<T> action)
```

### Parameters

- `name` (`string`)
- `includeDisabled` (`bool`)
- `action` (`System.Action<T>`)

## Overload 2

```csharp
void ForEach(string name, bool includeDisabled, System.Action<Component> action)
```

### Parameters

- `name` (`string`)
- `includeDisabled` (`bool`)
- `action` (`System.Action<Component>`)

Declared in [Sandbox.ComponentList](/api/Sandbox.ComponentList).
Assembly: `Sandbox.Engine`.
