> ## Documentation Index
> Fetch the complete documentation index at: https://easyaf.nimbleapps.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# QueryResult

> Represents a query result.

## Definition

**Assembly:** Microsoft.Restier.Core.dll

**Namespace:** Microsoft.Restier.Core.Query

**Inheritance:** System.Object

## Syntax

```csharp theme={"dark"}
Microsoft.Restier.Core.Query.QueryResult
```

## Summary

Represents a query result.

## Constructors

### &#x20;.ctor

Initializes a new instance of the [QueryResult](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Query/QueryResult.md) class with an Exception.

#### Syntax

```csharp theme={"dark"}
public QueryResult(System.Exception exception)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `exception` | `System.Exception` | An Exception. |

### &#x20;.ctor

Initializes a new instance of the [QueryResult](https://easyaf.nimbleapps.cloud/restier/api-reference/Microsoft/Restier/Core/Query/QueryResult.md) class with in-memory results.

#### Syntax

```csharp theme={"dark"}
public QueryResult(System.Collections.IEnumerable results)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `results` | `System.Collections.IEnumerable` | In-memory results. |

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public Object()
```

## Properties

### &#x20;Exception

Gets or sets an Exception to be returned.

#### Syntax

```csharp theme={"dark"}
public System.Exception Exception { get; set; }
```

#### Property Value

Type: `System.Exception`

#### Remarks

Setting this value will override any existing Exception or results.

### &#x20;Results

Gets or sets the in-memory results.

#### Syntax

```csharp theme={"dark"}
public System.Collections.IEnumerable Results { get; set; }
```

#### Property Value

Type: `System.Collections.IEnumerable`

#### Remarks

Setting this value will override any existing Exception or results.

### &#x20;ResultsSource

Gets or sets the entity set from which the results were sourced.

#### Syntax

```csharp theme={"dark"}
public Microsoft.OData.Edm.IEdmEntitySet ResultsSource { get; set; }
```

#### Property Value

Type: `Microsoft.OData.Edm.IEdmEntitySet`

#### Remarks

This property will be `null` if the results are not instances
of a particular entity type that has an associated entity set.

## Methods

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={"dark"}
public virtual string ToString()
```

#### Returns

Type: `string?`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.