# DocumentTarget.ID Property

> Gets or sets an identifier for the document target. This identifier can be used to uniquely identify the target.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > DocumentTarget.ID Property
- **394 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/documenttarget/id-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/documenttarget/id-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/documenttarget/id-property/llms-full.txt

---

### Description

Gets or sets an identifier for the document target. This identifier can be used to uniquely identify the target.

### Syntax

```csharp
public int ID { get; set; }
```

```vbnet
Public Property ID As Integer
```

### Examples

The following example creates a named destination for an internal document link by using `DocumentTarget.ID`.

```csharp
DocumentTarget documentTarget = new("CustomerDetails");
textControl.DocumentTargets.Add(documentTarget);

documentTarget.ID = 100;
Console.WriteLine($"ID used by Document Target: {documentTarget.ID}");
```

```vbnet
Dim documentTarget As New DocumentTarget("CustomerDetails")
textControl.DocumentTargets.Add(documentTarget)

documentTarget.ID = 100
Console.WriteLine($"ID used by Document Target: {documentTarget.ID}")
```

---

## Nearby

- **Previous:** [DocumentTarget.Deleteable Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/documenttarget/deleteable-property/llms-full.txt)
- **Next:** [DocumentTarget.Name Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/documenttarget/name-property/llms-full.txt)
