> ## Documentation Index
> Fetch the complete documentation index at: https://docs.resq.software/llms.txt
> Use this file to discover all available pages before exploring further.

# ResQ.Simulation.ScenarioRunner.ValidateDroneCount(int,string)

### [ResQ.Simulation](./ResQ.Simulation.md "ResQ.Simulation").[ScenarioRunner](./ResQ.Simulation.ScenarioRunner.md "ResQ.Simulation.ScenarioRunner")

## ScenarioRunner.ValidateDroneCount(int, string) Method

Validates drone count parameter is within safe bounds.

```csharp theme={null}
private static void ValidateDroneCount(int droneCount, string paramName);
```

#### Parameters

<a name="ResQ.Simulation.ScenarioRunner.ValidateDroneCount(int,string).droneCount" />

`droneCount` [System.Int32](https://learn.microsoft.com/en-us/dotnet/api/system.int32 "System.Int32")

The number of drones to validate.

<a name="ResQ.Simulation.ScenarioRunner.ValidateDroneCount(int,string).paramName" />

`paramName` [System.String](https://learn.microsoft.com/en-us/dotnet/api/system.string "System.String")

Name of the parameter for error messages.

#### Exceptions

[System.ArgumentOutOfRangeException](https://learn.microsoft.com/en-us/dotnet/api/system.argumentoutofrangeexception "System.ArgumentOutOfRangeException")\
Thrown when drone count is outside valid range.
