DataSourceAttribute Constructor (String, String, String, DataBindingAccessMethod, DataBindingSelectColumns, String)
Initializes an instance of the DataSourceAttribute class using an array of table names, the defined access method, name of the data source, name of the provider, connection string, and the column filters.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Sub New ( _
dataSourceName As String, _
providerName As String, _
connectionString As String, _
accessMethod As DataBindingAccessMethod, _
selectColumns As DataBindingSelectColumns, _
tableName As String _
)
public DataSourceAttribute(
string dataSourceName,
string providerName,
string connectionString,
DataBindingAccessMethod accessMethod,
DataBindingSelectColumns selectColumns,
string tableName
)
public:
DataSourceAttribute(
String^ dataSourceName,
String^ providerName,
String^ connectionString,
DataBindingAccessMethod accessMethod,
DataBindingSelectColumns selectColumns,
String^ tableName
)
new :
dataSourceName:string *
providerName:string *
connectionString:string *
accessMethod:DataBindingAccessMethod *
selectColumns:DataBindingSelectColumns *
tableName:string -> DataSourceAttribute
public function DataSourceAttribute(
dataSourceName : String,
providerName : String,
connectionString : String,
accessMethod : DataBindingAccessMethod,
selectColumns : DataBindingSelectColumns,
tableName : String
)
Parameters
dataSourceName
Type: StringThe name of the data source.
providerName
Type: StringThe name of the data source provider.
connectionString
Type: StringThe connection string to access the data source.
accessMethod
Type: Microsoft.VisualStudio.TestTools.WebTesting.DataBindingAccessMethodThe mode for accessing data from the data source.
selectColumns
Type: Microsoft.VisualStudio.TestTools.WebTesting.DataBindingSelectColumnsThe column filters used for selecting the data.
tableName
Type: StringThe table names within the data source that contain information to be accessed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.