# RetentionTargetOptions

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/api/tracon.retentiontargetoptions/
> Summary: RetentionTargetOptions: Defines a configuration-based retention default for one target.

<div class="api-provenance">Namespace Tracon · Assembly <code>Tracon.Core.dll</code></div>

Defines a configuration-based retention default for one target.

```csharp
public sealed class RetentionTargetOptions
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.retentiontargetoptions/">RetentionTargetOptions</a></dd><dt>Inherited Members</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a></dd></dl>

## Constructors

### <a id="Tracon_RetentionTargetOptions__ctor"></a> RetentionTargetOptions\(\)

```csharp
public RetentionTargetOptions()
```

## Properties

### <a id="Tracon_RetentionTargetOptions_Archive"></a> Archive

Gets or sets whether to archive before deletion.

```csharp
public bool Archive { get; set; }
```

#### Property Value

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_RetentionTargetOptions_MaxAgeDays"></a> MaxAgeDays

Gets or sets the age after which rows are eligible for deletion. [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) disables the default for this target.

```csharp
public int? MaxAgeDays { get; set; }
```

#### Property Value

 [int](https://learn.microsoft.com/dotnet/api/system.int32)?
