Partilhar via


Método WebTest.AddDataSource (String, String, String, DataBindingAccessMethod, array<String )

Adicionar uma fonte de dados à coleção de dados que está contida pelo teste de desempenho da Web.

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

Sintaxe

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

Parâmetros

  • connectionString
    Tipo: System.String
    A cadeia de conexão de provedor- dependente para a fonte de dados.
  • tableNames
    Tipo: array<System.String[]
    Apresenta os nomes que são encontrados na fonte de dados que contém os dados a ser acessados.

Segurança do .NET Framework

Consulte também

Referência

WebTest Classe

Sobrecargas AddDataSource

Namespace Microsoft.VisualStudio.TestTools.WebTesting