Condividi tramite


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

Aggiunge un'origine dati all'insieme di dati contenuto nel test delle prestazioni Web.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Sintassi

'Dichiarazione
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[]
)

Parametri

  • connectionString
    Tipo: System.String
    Stringa di connessione dipendente dal provider per l'origine dati.
  • tableNames
    Tipo: array<System.String[]
    Nomi di tabella presenti nell'origine dati contenente i dati a cui accedere.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

WebTest Classe

Overload AddDataSource

Spazio dei nomi Microsoft.VisualStudio.TestTools.WebTesting