Export (0) Print
Expand All

WebTest.AddDataSourceBinding Method

Defines a binding relationship and adds it to the data source binding collection for the Web performance test.

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

public virtual void AddDataSourceBinding(
	string dataSourceName,
	string tableName,
	string columnName,
	string contextName
)

Parameters

dataSourceName
Type: System.String
The name of the data source.
tableName
Type: System.String
The name of a table in the data source.
columnName
Type: System.String
The name of a column in the table to that is used for binding.
contextName
Type: System.String
The variable name that represents the binding.

ExceptionCondition
WebTestException

dataSourceName does not represent a data source that is found in the internal Web performance test data source collection.

Community Additions

ADD
Show:
© 2014 Microsoft