Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WebTest::AddDataSource Method (String^, String^, String^, DataBindingAccessMethod, array<String^>^)

 

Adds a data source to the data collection that is contained by the Web performance test.

Namespace:   Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

public:
virtual void AddDataSource(
	String^ dataSourceName,
	String^ providerName,
	String^ connectionString,
	DataBindingAccessMethod accessMethod,
	... array<String^>^ tableNames
)

Parameters

dataSourceName
Type: System::String^

The name of the data source.

providerName
Type: System::String^

The name of the provider.

connectionString
Type: System::String^

The provider-dependent connection string for the data source.

accessMethod
Type: Microsoft.VisualStudio.TestTools.WebTesting::DataBindingAccessMethod

The access method that is used to obtain information from the data source. This uses a DataBindingAccessMethod enumeration.

tableNames
Type: array<System::String^>^

Table names that are found in the data source that contains data to be accessed.

Return to top
Show: