Back to Devexpress

IDataSourceWizardConnectionStringsProvider.GetDataConnectionParameters(String) Method

corelibraries-devexpress-dot-dataaccess-dot-web-dot-idatasourcewizardconnectionstringsprovider-dot-getdataconnectionparameters-x28-system-dot-string-x29.md

latest2.8 KB
Original Source

IDataSourceWizardConnectionStringsProvider.GetDataConnectionParameters(String) Method

Returns the parameters of the data connection with a specific name.

Namespace : DevExpress.DataAccess.Web

Assembly : DevExpress.DataAccess.v25.2.dll

NuGet Package : DevExpress.DataAccess

Declaration

csharp
DataConnectionParametersBase GetDataConnectionParameters(
    string name
)
vb
Function GetDataConnectionParameters(
    name As String
) As DataConnectionParametersBase

Parameters

NameTypeDescription
nameString

A DataConnectionParametersBase object.

|

Returns

TypeDescription
DataConnectionParametersBase

A String value, specifying the data connection name.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetDataConnectionParameters(String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-core-dashboard-create-json-connections/CS/SaveJsonConnectionTutorial/Code/DashboardUtils.cs#L39

csharp
if (provider.GetConnectionDescriptions().ContainsKey(name))
    return provider.GetDataConnectionParameters(name);
DataConnectionParametersBase fromStorage;

See Also

IDataSourceWizardConnectionStringsProvider Interface

IDataSourceWizardConnectionStringsProvider Members

DevExpress.DataAccess.Web Namespace