# TextControl.LoadDataSetAsync Method

> Loads a database which is used to create table and field name menu items in the mailings ribbon tab from an existing DataSet object. This method returns immediately and does not wait for the DataSet to be loaded completely.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.Web`
- **Assembly:** `TXTextControl.Web.dll`, which the TX Text Control .NET Server setup installs, for .NET Framework; in no NuGet package
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web > TextControl.LoadDataSetAsync Method
- **425 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/loaddatasetasync-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/loaddatasetasync-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/loaddatasetasync-method/llms-full.txt

---

### Description

Loads a database which is used to create table and field name menu items in the mailings ribbon tab from an existing DataSet object. This method returns immediately and does not wait for the DataSet to be loaded completely.

### Syntax

```csharp
public async System.Threading.Tasks.Task LoadDataSetAsync(System.Data.DataSet dataSet);
```

```vbnet
Public Async Function LoadDataSetAsync(dataSet As System.Data.DataSet) As System.Threading.Tasks.Task
```

### Parameters

| Parameter | Description |
|---|---|
| dataSet | Specifies a System.Data.DataSet object from which table and field names and existing data relations are loaded. |

### Examples

The following example uses `TextControl.LoadDataSet` in a document-processing workflow.

```csharp
var result = textControl.LoadDataSet(new System.Data.DataSet());
Console.WriteLine(result);
```

```vbnet
Dim result = textControl.LoadDataSet(New System.Data.DataSet())
Console.WriteLine(result)
```

---

## Nearby

- **Previous:** [TextControl.LoadDataSet Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/loaddataset-method/llms-full.txt)
- **Next:** [TextControl.LoadText Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web/textcontrol/loadtext-method/llms-full.txt)
