DataSource.SetConnection Method (String, String)
Sets the provider and connection string for the data source.
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public Sub SetConnection ( _
provider As String, _
connection As String _
)
public void SetConnection(
string provider,
string connection
)
public:
void SetConnection(
String^ provider,
String^ connection
)
member SetConnection :
provider:string *
connection:string -> unit
public function SetConnection(
provider : String,
connection : String
)
Parameters
provider
Type: StringThe Provider name for the data source.
connection
Type: StringThe Connection string to set for this data source.
.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.