# AttachmentQuery

> 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.attachmentquery/
> Summary: AttachmentQuery: The filter used to list attachments.

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

The filter used to list attachments.

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

## Constructors

### <a id="Tracon_AttachmentQuery__ctor"></a> AttachmentQuery\(\)

```csharp
public AttachmentQuery()
```

## Properties

### <a id="Tracon_AttachmentQuery_SessionId"></a> SessionId

Gets the session whose attachments are returned, when it is given.

```csharp
public string? SessionId { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)?

### <a id="Tracon_AttachmentQuery_Skip"></a> Skip

Gets the number of records to skip.

```csharp
public int Skip { get; init; }
```

#### Property Value

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

Gets the maximum number of records to return.

```csharp
public int Take { get; init; }
```

#### Property Value

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

Gets the tenant to query.

```csharp
public required string TenantId { get; init; }
```

#### Property Value

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

### <a id="Tracon_AttachmentQuery_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_AttachmentQuery_Equals_Tracon_AttachmentQuery_"></a> Equals\(AttachmentQuery?\)

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

`other` [AttachmentQuery](/api/tracon.attachmentquery/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_AttachmentQuery_op_Equality_Tracon_AttachmentQuery_Tracon_AttachmentQuery_"></a> operator ==\(AttachmentQuery?, AttachmentQuery?\)

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

`left` [AttachmentQuery](/api/tracon.attachmentquery/)?

`right` [AttachmentQuery](/api/tracon.attachmentquery/)?

#### Returns

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

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

`left` [AttachmentQuery](/api/tracon.attachmentquery/)?

`right` [AttachmentQuery](/api/tracon.attachmentquery/)?

#### Returns

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