# DataSubjectScope

> 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.datasubjectscope/
> Summary: DataSubjectScope: The sessions, runs, and conversations that belong to one data subject.

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

The sessions, runs, and conversations that belong to one data subject.

```csharp
public sealed record DataSubjectScope : IEquatable<DataSubjectScope>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.datasubjectscope/">DataSubjectScope</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;DataSubjectScope&gt;</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>

## Remarks

Everything else erasable (attachments, voice sessions, scores, workflow
checkpoints, and the conversation items and responses that hang off a
conversation) is reached FROM these three lists — the schema already ties
them to a session, a run, or a conversation. There is no separate list for those: adding one would
let a resolver hand back a set the eraser cannot actually act on.

## Constructors

### <a id="Tracon_DataSubjectScope__ctor"></a> DataSubjectScope\(\)

```csharp
public DataSubjectScope()
```

## Properties

### <a id="Tracon_DataSubjectScope_ConversationIds"></a> ConversationIds

Gets the `conversations.id` values that belong to the subject.

```csharp
public required IReadOnlyList<Guid> ConversationIds { get; init; }
```

#### Property Value

 [IReadOnlyList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist\-1)<[Guid](https://learn.microsoft.com/dotnet/api/system.guid)\>

### <a id="Tracon_DataSubjectScope_RunIds"></a> RunIds

Gets the `runs.id` values that belong to the subject.

```csharp
public required IReadOnlyList<Guid> RunIds { get; init; }
```

#### Property Value

 [IReadOnlyList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist\-1)<[Guid](https://learn.microsoft.com/dotnet/api/system.guid)\>

### <a id="Tracon_DataSubjectScope_SessionIds"></a> SessionIds

Gets the `sessions.id` values that belong to the subject.

```csharp
public required IReadOnlyList<string> SessionIds { get; init; }
```

#### Property Value

 [IReadOnlyList](https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist\-1)<[string](https://learn.microsoft.com/dotnet/api/system.string)\>

## Methods

### <a id="Tracon_DataSubjectScope_Equals_System_Object_"></a> Equals\(object?\)

```csharp
public override bool Equals(object? obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_DataSubjectScope_Equals_Tracon_DataSubjectScope_"></a> Equals\(DataSubjectScope?\)

```csharp
public bool Equals(DataSubjectScope? other)
```

#### Parameters

`other` [DataSubjectScope](/api/tracon.datasubjectscope/)?

#### Returns

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

```csharp
public override int GetHashCode()
```

#### Returns

 [int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="Tracon_DataSubjectScope_ToString"></a> ToString\(\)

```csharp
public override string ToString()
```

#### Returns

 [string](https://learn.microsoft.com/dotnet/api/system.string)

## Operators

### <a id="Tracon_DataSubjectScope_op_Equality_Tracon_DataSubjectScope_Tracon_DataSubjectScope_"></a> operator ==\(DataSubjectScope?, DataSubjectScope?\)

```csharp
public static bool operator ==(DataSubjectScope? left, DataSubjectScope? right)
```

#### Parameters

`left` [DataSubjectScope](/api/tracon.datasubjectscope/)?

`right` [DataSubjectScope](/api/tracon.datasubjectscope/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_DataSubjectScope_op_Inequality_Tracon_DataSubjectScope_Tracon_DataSubjectScope_"></a> operator \!=\(DataSubjectScope?, DataSubjectScope?\)

```csharp
public static bool operator !=(DataSubjectScope? left, DataSubjectScope? right)
```

#### Parameters

`left` [DataSubjectScope](/api/tracon.datasubjectscope/)?

`right` [DataSubjectScope](/api/tracon.datasubjectscope/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)
