Share 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

  • provider
    Type: String

    The Provider name for the data source.

  • connection
    Type: String

    The Connection string to set for this data source.

.NET Framework Security

See Also

Reference

DataSource Class

SetConnection Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace