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.

DataSourceAttribute Constructor (String^, String^, String^, DataBindingAccessMethod, array<String^>^)

 

Initializes an instance of the DataSourceAttribute class using an array of table names, the defined access method, and the name of the data source provider.

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

public:
DataSourceAttribute(
	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 data source provider.

connectionString
Type: System::String^

The connection string to access the data source.

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

The mode for accessing data from the data source.

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

The table names within the data source that contain information to be accessed.

Return to top
Show: