Dela via


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

.NET Framework Security

See Also

Reference

DataSource Class

SetConnection Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace