DataSourceAttribute Constructor (String, String, String, DataBindingAccessMethod, String)

Initializes an instance of the DataSourceAttribute class using a single table, the defined access method, 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, _
    accessMethod As DataBindingAccessMethod, _
    tableName As String _
)
public DataSourceAttribute(
    string dataSourceName,
    string providerName,
    string connectionString,
    DataBindingAccessMethod accessMethod,
    string tableName
)
public:
DataSourceAttribute(
    String^ dataSourceName, 
    String^ providerName, 
    String^ connectionString, 
    DataBindingAccessMethod accessMethod, 
    String^ tableName
)
new : 
        dataSourceName:string * 
        providerName:string * 
        connectionString:string * 
        accessMethod:DataBindingAccessMethod * 
        tableName:string -> DataSourceAttribute
public function DataSourceAttribute(
    dataSourceName : String, 
    providerName : String, 
    connectionString : String, 
    accessMethod : DataBindingAccessMethod, 
    tableName : String
)

Parameters

  • dataSourceName
    Type: System.String
    The name of the data source.
  • providerName
    Type: System.String
    The name of the data source provider.
  • connectionString
    Type: System.String
    The connection string to access the data source.
  • tableName
    Type: System.String
    The table name within the data source that contain information to be accessed.

.NET Framework Security

See Also

Reference

DataSourceAttribute Class

DataSourceAttribute Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace

DataBindingAccessMethod