# AdoNetStreamOptions Properties

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming.adonet/orleans.configuration.adonetstreamoptions/)

## ConnectionString {#connectionstring-440d9cc7}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.adonet/orleans.configuration.adonetstreamoptions/properties/connectionstring-440d9cc7/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/AdoNet/Orleans.Streaming.AdoNet/AdoNetStreamOptions.cs)

```csharp
public string ConnectionString
```

Gets or sets the connection string.

## DeadLetterEvictionTimeout {#deadletterevictiontimeout-dd658f88}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.adonet/orleans.configuration.adonetstreamoptions/properties/deadletterevictiontimeout-dd658f88/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/AdoNet/Orleans.Streaming.AdoNet/AdoNetStreamOptions.cs)

```csharp
public TimeSpan DeadLetterEvictionTimeout
```

The removal timeout until a failed message is deleted from the dead letters table.

## EvictionBatchSize {#evictionbatchsize-c62d6e24}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.adonet/orleans.configuration.adonetstreamoptions/properties/evictionbatchsize-c62d6e24/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/AdoNet/Orleans.Streaming.AdoNet/AdoNetStreamOptions.cs)

```csharp
public int EvictionBatchSize
```

The maximum number of messages affected by an eviction batch.

## EvictionInterval {#evictioninterval-0874792e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.adonet/orleans.configuration.adonetstreamoptions/properties/evictioninterval-0874792e/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/AdoNet/Orleans.Streaming.AdoNet/AdoNetStreamOptions.cs)

```csharp
public TimeSpan EvictionInterval
```

The period of time between eviction activities. These include moving expired messages to dead letters and removing dead letters after their own lifetime. This period is cluster wide and will not change with the number of silos.

## ExpiryTimeout {#expirytimeout-66e32250}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.adonet/orleans.configuration.adonetstreamoptions/properties/expirytimeout-66e32250/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/AdoNet/Orleans.Streaming.AdoNet/AdoNetStreamOptions.cs)

```csharp
public TimeSpan ExpiryTimeout
```

The expiry timeout until a message is considered expired and moved to dead letters regardless of attempts. The message is only moved if the current attempt is also past its visibility timeout.

## InitializationTimeout {#initializationtimeout-d9b2df9d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.adonet/orleans.configuration.adonetstreamoptions/properties/initializationtimeout-d9b2df9d/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/AdoNet/Orleans.Streaming.AdoNet/AdoNetStreamOptions.cs)

```csharp
public TimeSpan InitializationTimeout
```

A safety timeout for underlying database initialization.

## Invariant {#invariant-705e4b0e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.adonet/orleans.configuration.adonetstreamoptions/properties/invariant-705e4b0e/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/AdoNet/Orleans.Streaming.AdoNet/AdoNetStreamOptions.cs)

```csharp
public string Invariant
```

Gets or sets the ADO.NET invariant.

## MaxAttempts {#maxattempts-22d8cf62}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.adonet/orleans.configuration.adonetstreamoptions/properties/maxattempts-22d8cf62/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/AdoNet/Orleans.Streaming.AdoNet/AdoNetStreamOptions.cs)

```csharp
public int MaxAttempts
```

The maximum number of attempts to deliver a message. The message is eventually moved to dead letters if these many attempts are made without success.

## VisibilityTimeout {#visibilitytimeout-a6789de1}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.adonet/orleans.configuration.adonetstreamoptions/properties/visibilitytimeout-a6789de1/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/AdoNet/Orleans.Streaming.AdoNet/AdoNetStreamOptions.cs)

```csharp
public TimeSpan VisibilityTimeout
```

The timeout until a message is allowed to be dequeued again if not yet confirmed.
