DataSourceAttribute Constructor (String, String, String)
Initializes an instance of the DataSourceAttribute class using a single table.
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, _
tableName As String _
)
public DataSourceAttribute(
string dataSourceName,
string connectionString,
string tableName
)
public:
DataSourceAttribute(
String^ dataSourceName,
String^ connectionString,
String^ tableName
)
new :
dataSourceName:string *
connectionString:string *
tableName:string -> DataSourceAttribute
public function DataSourceAttribute(
dataSourceName : String,
connectionString : String,
tableName : String
)
Parameters
dataSourceName
Type: StringThe name of the data source.
connectionString
Type: StringThe connection string to access the data source.
tableName
Type: StringThe table name within the data source that contain information to be accessed.
Remarks
The AccessMethod property is initialized with Sequential. All properties are set through the constructor.
.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.