TX Text Control .NET Server

LoadDataSetAsync Method

Method|Introduced in 21.0
Namespace
TXTextControl.Web
Package
None: the TX Text Control .NET Server setup installs it, for .NET Framework.
Assembly
TXTextControl.Web.dll

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

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

Parameters

ParameterDescription
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.

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