# GatewayOptions Fields

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.gatewayoptions/)

## DEFAULT_PREFERED_GATEWAY_INDEX {#default-prefered-gateway-index-bd20b39f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.gatewayoptions/fields/default-prefered-gateway-index-bd20b39f/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Configuration/Options/GatewayOptions.cs)

```csharp
public const int DEFAULT_PREFERED_GATEWAY_INDEX
```

Default preferred gateway index,. Value -1 means prefer no gateway
