Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Adds a data source to the data collection that is contained by the Web performance test.
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, _
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[]
)
Parameters
dataSourceName
Type: StringThe name of the data source.
providerName
Type: StringThe name of the provider.
connectionString
Type: StringThe provider-dependent connection string for the data source.
accessMethod
Type: Microsoft.VisualStudio.TestTools.WebTesting.DataBindingAccessMethodThe access method that is used to obtain information from the data source. This uses a DataBindingAccessMethod enumeration.
tableNames
Type: array<String[]Table names that are found in the data source that contains data to be accessed.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.