# TableBaseCollection.SyncRoot Property

> Gets an object that can be used to synchronize access to the collection.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 11.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Explicit:** implements `System.Collections.ICollection` explicitly; cast to the interface to use it
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > TableBaseCollection.SyncRoot Property
- **322 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablebasecollection/syncroot-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablebasecollection/syncroot-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablebasecollection/syncroot-property/llms-full.txt

---

### Description

Gets an object that can be used to synchronize access to the collection.

### Syntax

The type implements this member of System.Collections.ICollection explicitly: code reaches it by casting to the interface, as in ((ICollection)value).SyncRoot.

```csharp
object ICollection.SyncRoot { get; }
```

```vbnet
Private ReadOnly Property SyncRoot As Object Implements ICollection.SyncRoot
```

### Examples

The following example accesses the collection's sync root value through the `ICollection` interface.

```csharp
ICollection collection = tableBaseCollection;
var value = collection.SyncRoot;
```

```vbnet
Dim collection As ICollection = tableBaseCollection
Dim value = collection.SyncRoot
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [TableBaseCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablebasecollection/remove-method/llms-full.txt)
- **Next:** [TableCell Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/tablecell/llms-full.txt)
