Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes an instance of the DataSourceAttribute class using an array of table names.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Sub New ( _
dataSourceName As String, _
connectionString As String, _
accessMethod As DataBindingAccessMethod, _
ParamArray tableNames As String() _
)
public DataSourceAttribute(
string dataSourceName,
string connectionString,
DataBindingAccessMethod accessMethod,
params string[] tableNames
)
public:
DataSourceAttribute(
String^ dataSourceName,
String^ connectionString,
DataBindingAccessMethod accessMethod,
... array<String^>^ tableNames
)
new :
dataSourceName:string *
connectionString:string *
accessMethod:DataBindingAccessMethod *
tableNames:string[] -> DataSourceAttribute
public function DataSourceAttribute(
dataSourceName : String,
connectionString : String,
accessMethod : DataBindingAccessMethod,
... tableNames : String[]
)
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.
- tableNames
Type: array<System.String[]
The 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.