Partager via


WebTest.AddDataSource Method (String, String, DataBindingAccessMethod, array<String )

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
Public Overridable Sub AddDataSource ( _
    dataSourceName As String, _
    connectionString As String, _
    accessMethod As DataBindingAccessMethod, _
    ParamArray tableNames As String() _
)
public virtual void AddDataSource(
    string dataSourceName,
    string connectionString,
    DataBindingAccessMethod accessMethod,
    params string[] tableNames
)
public:
virtual void AddDataSource(
    String^ dataSourceName, 
    String^ connectionString, 
    DataBindingAccessMethod accessMethod, 
    ... array<String^>^ tableNames
)
abstract AddDataSource : 
        dataSourceName:string * 
        connectionString:string * 
        accessMethod:DataBindingAccessMethod * 
        tableNames:string[] -> unit  
override AddDataSource : 
        dataSourceName:string * 
        connectionString:string * 
        accessMethod:DataBindingAccessMethod * 
        tableNames:string[] -> unit
public function AddDataSource(
    dataSourceName : String, 
    connectionString : String, 
    accessMethod : DataBindingAccessMethod, 
    ... tableNames : String[]
)

Parameters

  • dataSourceName
    Type: String
  • connectionString
    Type: String
  • tableNames
    Type: array<String[]

.NET Framework Security

See Also

Reference

WebTest Class

AddDataSource Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace