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^, DataBindingAccessMethod, String^)

 

Initializes an instance of the DataSourceAttribute class using a single table and the defined access method.

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

public:
DataSourceAttribute(
	String^ dataSourceName,
	String^ connectionString,
	DataBindingAccessMethod accessMethod,
	String^ tableName
)

Parameters

dataSourceName
Type: System::String^

The name of the data source.

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.

tableName
Type: System::String^

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

Return to top
Show: