DataSourceAttribute Constructor (String, String, array<String )

Initializes an instance of the DataSourceAttribute class.

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, _
    ParamArray tableNames As String() _
)
public DataSourceAttribute(
    string dataSourceName,
    string connectionString,
    params string[] tableNames
)
public:
DataSourceAttribute(
    String^ dataSourceName, 
    String^ connectionString, 
    ... array<String^>^ tableNames
)
new : 
        dataSourceName:string * 
        connectionString:string * 
        tableNames:string[] -> DataSourceAttribute
public function DataSourceAttribute(
    dataSourceName : String, 
    connectionString : String, 
    ... 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.
  • tableNames
    Type: array<System.String[]
    The table names, 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

See Also

Reference

DataSourceAttribute Class

DataSourceAttribute Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace