---
title: "Interface IScriptScope"
slug: "scripting--stylelabs.m.scripting.types.v1_0.base.iscriptscope"
abstract: ""
---
# Interface IScriptScope

Defines a script scope.

## Namespace: StylelabsStylelabs.MStylelabs.M.ScriptingStylelabs.M.Scripting.TypesStylelabs.M.Scripting.Types.V1_0Base

## Assembly: Stylelabs.M.Scripting.Types.dll

## Syntax

```csharp
public interface IScriptScope
```

## Properties

### ContextObject

Gets the context.

#### Declaration

```csharp
object ContextObject { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| object |  |

### MClient

Gets the sdk client.

#### Declaration

```csharp
IMClient MClient { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| IMClient |  |

## Methods

### GetAuditData()

Gets the audit data from the script. For performance reasons, if there is nothing to return, null can be returned.

#### Declaration

```csharp
AuditData GetAuditData()
```

#### Returns

| Type | Description |
| --- | --- |
| [AuditData](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.audit.auditdata.html) | The [AuditData](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.audit.auditdata.html). |

### GetTelemetryData()

Gets the telemetry data from the script.

#### Declaration

```csharp
TelemetryData GetTelemetryData()
```

#### Returns

| Type | Description |
| --- | --- |
| [TelemetryData](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.telemetry.telemetrydata.html) | The [TelemetryData](https://doc.sitecore.com/ch/en/developers/api-reference/scripting--stylelabs.m.scripting.types.v1_0.telemetry.telemetrydata.html). |
