# DataSourceManager.DataProviderName Property

> Gets the name of the data provider selected with the DatabaseConnectionDialog. If no data connection was selected, this property returns an empty string.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.DataSources`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DocumentServer.DataSources > DataSourceManager.DataProviderName Property
- **370 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datasourcemanager/dataprovidername-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datasourcemanager/dataprovidername-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datasourcemanager/dataprovidername-property/llms-full.txt

---

### Description

Gets the name of the data provider selected with the [DatabaseConnectionDialog](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/databaseconnectiondialog/llms-full.txt). If no data connection was selected, this property returns an empty string.

### Syntax

```csharp
public string DataProviderName { get; }
```

```vbnet
Public ReadOnly Property DataProviderName As String
```

### Examples

The following example includes the data provider name value in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Data Provider Name: {dataSourceManager.DataProviderName}");
Console.WriteLine("Data Source Manager is ready for use.");
```

```vbnet
Console.WriteLine($"Data Provider Name: {dataSourceManager.DataProviderName}")
Console.WriteLine("Data Source Manager is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [DataSourceManager Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datasourcemanager/constructor/llms-full.txt)
- **Next:** [DataSourceManager.DataProviderNameChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datasourcemanager/dataprovidernamechanged-event/llms-full.txt)
