WebTest.AddDataSource 方法 (String, String, String, DataBindingAccessMethod, DataBindingSelectColumns, array<String[])
命名空间: Microsoft.VisualStudio.TestTools.WebTesting
程序集: Microsoft.VisualStudio.QualityTools.WebTestFramework(在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)
语法
声明
Public Overridable Sub AddDataSource ( _
dataSourceName As String, _
providerName As String, _
connectionString As String, _
accessMethod As DataBindingAccessMethod, _
selectColumns As DataBindingSelectColumns, _
ParamArray tableNames As String() _
)
public virtual void AddDataSource(
string dataSourceName,
string providerName,
string connectionString,
DataBindingAccessMethod accessMethod,
DataBindingSelectColumns selectColumns,
params string[] tableNames
)
public:
virtual void AddDataSource(
String^ dataSourceName,
String^ providerName,
String^ connectionString,
DataBindingAccessMethod accessMethod,
DataBindingSelectColumns selectColumns,
... array<String^>^ tableNames
)
abstract AddDataSource :
dataSourceName:string *
providerName:string *
connectionString:string *
accessMethod:DataBindingAccessMethod *
selectColumns:DataBindingSelectColumns *
tableNames:string[] -> unit
override AddDataSource :
dataSourceName:string *
providerName:string *
connectionString:string *
accessMethod:DataBindingAccessMethod *
selectColumns:DataBindingSelectColumns *
tableNames:string[] -> unit
public function AddDataSource(
dataSourceName : String,
providerName : String,
connectionString : String,
accessMethod : DataBindingAccessMethod,
selectColumns : DataBindingSelectColumns,
... tableNames : String[]
)
参数
- dataSourceName
类型:System.String
- providerName
类型:System.String
- connectionString
类型:System.String
- selectColumns
类型:Microsoft.VisualStudio.TestTools.WebTesting.DataBindingSelectColumns
- tableNames
类型:array<System.String[]
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。