
# ILocalHistoryManager interface

*No description yet.*

```csharp
public interface ILocalHistoryManager
```

**Namespace:** DXP · **Assembly:** Altium.SDK.Interfaces

## Properties

| Property | Type | Access | Description |
| --- | --- | --- | --- |
| [AddAutoSaves](#addautosaves) | `bool` | get; set |  |
| [GlobalRepositoryPath](#globalrepositorypath) | `string` | get; set |  |
| [StartPurgingAfter](#startpurgingafter) | `int` | get; set |  |

### AddAutoSaves

*No description yet.*

```csharp
bool GetAddAutoSaves();
void SetAddAutoSaves(bool argValue);
```

**Type:** `bool` · **Access:** read/write

### GlobalRepositoryPath

*No description yet.*

```csharp
string GetGlobalRepositoryPath();
void SetGlobalRepositoryPath(string argValue);
```

**Type:** `string` · **Access:** read/write

### StartPurgingAfter

*No description yet.*

```csharp
int GetStartPurgingAfter();
void SetStartPurgingAfter(int argValue);
```

**Type:** `int` · **Access:** read/write

## Methods

| Method | Returns | Description |
| --- | --- | --- |
| [Add](#add) | `int` |  |
| [ApplyLabel](#applylabel) | `bool` |  |
| [CopyLabel](#copylabel) | `bool` |  |
| [CopyVersion](#copyversion) | `bool` |  |
| [Delete](#delete) | `bool` |  |
| [DisableLocalHistory](#disablelocalhistory) | `void` |  |
| [EnableLocalHistory](#enablelocalhistory) | `void` |  |
| [GetGlobalRepositoryPathNotExpanded](#getglobalrepositorypathnotexpanded) | `string` |  |
| [GetHistory](#gethistory) | [IDocumentBackups](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IDocumentBackups.md) |  |
| [GetHistoryPathForFile](#gethistorypathforfile) | `string` |  |
| [GetInfo](#getinfo) | `bool` |  |
| [Purge](#purge) | `void` |  |
| [RevertToLabel](#reverttolabel) | `bool` |  |
| [RevertToVer](#reverttover) | `bool` |  |

### Add

*No description yet.*

```csharp
int Add(string argFileName, string argLabel);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argFileName` | `string` | value |
| `argLabel` | `string` | value |

**Returns:** `int`

### ApplyLabel

*No description yet.*

```csharp
bool ApplyLabel(string argFileName, int argVersion, string argLabel);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argFileName` | `string` | value |
| `argVersion` | `int` | value |
| `argLabel` | `string` | value |

**Returns:** `bool`

### CopyLabel

*No description yet.*

```csharp
bool CopyLabel(string argFileName, string argLabel, string argDestName);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argFileName` | `string` | value |
| `argLabel` | `string` | value |
| `argDestName` | `string` | value |

**Returns:** `bool`

### CopyVersion

*No description yet.*

```csharp
bool CopyVersion(string argFileName, int argVersion, string argDestName);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argFileName` | `string` | value |
| `argVersion` | `int` | value |
| `argDestName` | `string` | value |

**Returns:** `bool`

### Delete

*No description yet.*

```csharp
bool Delete(string argFileName, int argVersion, bool argDelLabel);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argFileName` | `string` | value |
| `argVersion` | `int` | value |
| `argDelLabel` | `bool` | value |

**Returns:** `bool`

### DisableLocalHistory

*No description yet.*

```csharp
void DisableLocalHistory();
```

**Returns:** nothing (`void`)

### EnableLocalHistory

*No description yet.*

```csharp
void EnableLocalHistory();
```

**Returns:** nothing (`void`)

### GetGlobalRepositoryPathNotExpanded

*No description yet.*

```csharp
string GetGlobalRepositoryPathNotExpanded();
```

**Returns:** `string`

### GetHistory

*No description yet.*

```csharp
IDocumentBackups GetHistory(string argFileName);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argFileName` | `string` | value |

**Returns:** [IDocumentBackups](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IDocumentBackups.md)

Extension method of `ILocalHistoryManagerHelper` (`using DXP;`).

### GetHistoryPathForFile

*No description yet.*

```csharp
string GetHistoryPathForFile(string argFileName);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argFileName` | `string` | value |

**Returns:** `string`

### GetInfo

*No description yet.*

```csharp
bool GetInfo(string argHistoryFileName, ref string argFileName, ref string argLabel, ref int argVersion);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argHistoryFileName` | `string` | value |
| `argFileName` | `string` | ref |
| `argLabel` | `string` | ref |
| `argVersion` | `int` | ref |

**Returns:** `bool`

### Purge

*No description yet.*

```csharp
void Purge(string argFileName);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argFileName` | `string` | value |

**Returns:** nothing (`void`)

### RevertToLabel

*No description yet.*

```csharp
bool RevertToLabel(string argFileName, string argLabel);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argFileName` | `string` | value |
| `argLabel` | `string` | value |

**Returns:** `bool`

### RevertToVer

*No description yet.*

```csharp
bool RevertToVer(string argFileName, int argVersion);
```

| Parameter | Type | Passing |
| --- | --- | --- |
| `argFileName` | `string` | value |
| `argVersion` | `int` | value |

**Returns:** `bool`

## Returned by

[IDXPWorkSpace.DM_LocalHistoryManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/dxp/IDXPWorkSpace.md#dm_localhistorymanager), [IWorkspace.DM_LocalHistoryManager](https://altiumdeveloper.github.io/ad-sdk-docs/reference/edp/IWorkspace.md#dm_localhistorymanager)
