Initializes an instance of the DataSourceAttribute class using a single table and the name of the data source provider.
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, _
    tableName As String _
)
public DataSourceAttribute(
    string dataSourceName,
    string providerName,
    string connectionString,
    string tableName
)
public:
DataSourceAttribute(
    String^ dataSourceName, 
    String^ providerName, 
    String^ connectionString, 
    String^ tableName
)
new : 
        dataSourceName:string * 
        providerName:string * 
        connectionString:string * 
        tableName:string -> DataSourceAttribute
public function DataSourceAttribute(
    dataSourceName : String, 
    providerName : String, 
    connectionString : String, 
    tableName : String
)
Parameters
- dataSourceName 
 Type: String- The name of the data source. 
- providerName 
 Type: String- The name of the data source provider. 
- connectionString 
 Type: String- The connection string to access the data source. 
- tableName 
 Type: String- The table name 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.