---
title: "Interface IDirtyTracking"
slug: "sdk--stylelabs.m.sdk.contracts.dirtytracking.idirtytracking"
abstract: ""
---
# Interface IDirtyTracking

Interface for components that support dirty tracking.

## Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ContractsDirtyTracking

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public interface IDirtyTracking
```

## Properties

### IsDirty

Gets a value indicating whether the object has unsaved changes.

#### Declaration

```csharp
bool IsDirty { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| bool |  |

### IsTracking

Gets a value indicating whether the object is tracking changes.

#### Declaration

```csharp
bool IsTracking { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| bool |  |

## Methods

### MarkClean()

Marks the object as clean. This will set [IsDirty](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.contracts.dirtytracking.idirtytracking.html) to false.

#### Declaration

```csharp
void MarkClean()
```

### StartTracking()

Starts tracking the object for changes.

#### Declaration

```csharp
void StartTracking()
```
