---
title: "Class Context"
slug: "sitecore.layoutservice.client.response.model.context"
abstract: ""
---
# Class Context

Represents the context of a Sitecore layout response.

## Inheritance

System.Object

Context

### **Namespace**: Sitecore.LayoutService.Client.Response.Model

#### **Assembly**: Sitecore.LayoutService.Client.Abstractions.dll

##### Syntax

```csharp
public class Context : Object

```

### Constructors

#### Context()

##### Declaration

```csharp
public Context()

```

### Properties

#### IsEditing

Gets or sets a value indicating whether the page is in editing mode.

##### Declaration

```csharp
public bool IsEditing { get; set; }

```

##### Property Value

| Type | Description |
| --- | --- |
| System.Boolean |  |

#### Language

Gets or sets the language of the response.

##### Declaration

```csharp
public string Language { get; set; }

```

##### Property Value

| Type | Description |
| --- | --- |
| System.String |  |

#### PageState

Gets or sets the [PageState](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.model.context.html) of the response.

##### Declaration

```csharp
public Nullable<PageState> PageState { get; set; }

```

##### Property Value

| Type | Description |
| --- | --- |
| System.Nullable<br><br><<br><br>PageState<br><br>> |  |

#### Site

Gets or sets the [Site](https://doc.sitecore.com/xp/en/developers/hd/21/sitecore-asp-dot-net-rendering-sdk/sitecore.layoutservice.client.response.model.context.html) of the response.

##### Declaration

```csharp
public Site Site { get; set; }

```

##### Property Value

| Type | Description |
| --- | --- |
| Site |  |
