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

# ODataExecuteResult

> The HTTP result of an OData call.

## Definition

**Assembly:** Microsoft.OData.Mcp.Core.dll

**Namespace:** Microsoft.OData.Mcp.Core.Execution

**Inheritance:** System.Object

## Syntax

```csharp theme={null}
Microsoft.OData.Mcp.Core.Execution.ODataExecuteResult
```

## Summary

The HTTP result of an OData call.

## Constructors

### &#x20;.ctor

#### Syntax

```csharp theme={null}
public ODataExecuteResult()
```

### &#x20;.ctor Inherited

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

#### Syntax

```csharp theme={null}
public Object()
```

## Properties

### &#x20;Body

Gets or sets the response body.

#### Syntax

```csharp theme={null}
public string Body { get; set; }
```

#### Property Value

Type: `string`

### &#x20;BodyStream

Gets or sets the response body stream when the executor kept the OData output as written.

#### Syntax

```csharp theme={null}
public System.IO.Stream BodyStream { get; set; }
```

#### Property Value

Type: `System.IO.Stream?`

#### Remarks

Prefer this over [ODataExecuteResult.Body](https://ai.easyaf.dev/odata-mcp/api-reference/Microsoft/OData/Mcp/Core/Execution/ODataExecuteResult.md#body) for in-process success. Do not dispose it; the executor owns it.

### &#x20;IsSuccess

Gets or sets a value indicating whether the status code is success.

#### Syntax

```csharp theme={null}
public bool IsSuccess { get; set; }
```

#### Property Value

Type: `bool`

### &#x20;MediaType

Gets or sets the response media type.

#### Syntax

```csharp theme={null}
public string MediaType { get; set; }
```

#### Property Value

Type: `string?`

### &#x20;RetryAfter

Gets or sets the `Retry-After` header, when the service sent one.

#### Syntax

```csharp theme={null}
public string RetryAfter { get; set; }
```

#### Property Value

Type: `string?`

### &#x20;StatusCode

Gets or sets the HTTP status code.

#### Syntax

```csharp theme={null}
public int StatusCode { get; set; }
```

#### Property Value

Type: `int`

### &#x20;WwwAuthenticate

Gets or sets raw `WWW-Authenticate` header values, when the service sent any.

#### Syntax

```csharp theme={null}
public System.Collections.Generic.IReadOnlyList<string> WwwAuthenticate { get; set; }
```

#### Property Value

Type: `System.Collections.Generic.IReadOnlyList<string>`

#### Remarks

Values are unparsed challenge strings. OAuth interpretation lives outside Core.

## Methods

### &#x20;Equals Inherited Virtual

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

#### Syntax

```csharp theme={null}
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={null}
public static bool Equals(object objA, object objB)
```

#### Parameters

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

#### Returns

Type: `bool`

### &#x20;FromHttp

Copies status, body, media type, and `Retry-After` from an HTTP response.

#### Syntax

```csharp theme={null}
public static Microsoft.OData.Mcp.Core.Execution.ODataExecuteResult FromHttp(System.Net.Http.HttpResponseMessage response, string body)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `response` | `System.Net.Http.HttpResponseMessage` | The HTTP response. |
| `body` | `string` | The already-read body. |

#### Returns

Type: `Microsoft.OData.Mcp.Core.Execution.ODataExecuteResult`
The execute result.

### &#x20;GetHashCode Inherited Virtual

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

#### Syntax

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

#### Returns

Type: `int`

### &#x20;GetType Inherited

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

#### Syntax

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

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

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

#### Syntax

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

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

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

#### Syntax

```csharp theme={null}
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={null}
public virtual string ToString()
```

#### Returns

Type: `string?`


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