---
id: "P:cAlgo.API.AspTab.Id"
kind: "property"
type: "T:cAlgo.API.AspTab"
url: "https://help.ctrader.com/ctrader-algo/references/Plugin/Asp/AspTab/Id/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# AspTab.Id

Member of [AspTab](https://help.ctrader.com/ctrader-algo/references/Plugin/Asp/AspTab/index.md).

## Id

Returns unique ID of the current tab.

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Available to plugins only, and plugins cannot run in the CLI.
- Cloud: Available to plugins only, and plugins cannot run in the cloud.

C#:

```csharp
string Id {get;}
```

Python:

```python
aspTab.Id: str
```

### Returns

`string` — 

### Examples

C#:

```csharp
var tab = Asp.AddTab("My Tab");
Print("Tab ID: {0}", tab.Id);
```

Python:

```python
tab = api.Asp.AddTab("My Tab")
api.Print(f"Tab ID: {tab.Id}")
```

