WebTest.AddDataSource 方法 (String, String, String, DataBindingAccessMethod, 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, _
    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[]
)

参数

  • dataSourceName
    类型:String
  • providerName
    类型:String
  • connectionString
    类型:String
  • tableNames
    类型:array<String[]

.NET Framework 安全性

请参阅

参考

WebTest 类

AddDataSource 重载

Microsoft.VisualStudio.TestTools.WebTesting 命名空间