Compartilhar via


Método DataSource.SetConnection (String, String)

Define a seqüência de conexão e o provedor da fonte de dados.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (em Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Sintaxe

'Declaração
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
)

Parâmetros

Segurança do .NET Framework

Consulte também

Referência

DataSource Classe

Sobrecargas SetConnection

Namespace Microsoft.VisualStudio.TestTools.WebTesting