Share via


DataSource.SetConnection Method (String, String, String)

Sets the provider and connection string and enables a different string that you can use as a display value.

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, _
    connectionDisplayValue As String _
)
public void SetConnection(
    string provider,
    string connection,
    string connectionDisplayValue
)
public:
void SetConnection(
    String^ provider, 
    String^ connection, 
    String^ connectionDisplayValue
)
member SetConnection : 
        provider:string * 
        connection:string * 
        connectionDisplayValue:string -> unit
public function SetConnection(
    provider : String, 
    connection : String, 
    connectionDisplayValue : String
)

Parameters

  • provider
    Type: String

    The Provider name for the data source.

  • connection
    Type: String

    The Connection string to set for this data source.

  • connectionDisplayValue
    Type: String

    The connection string value to be displayed in the editor. This value should be the same as the connection string with security value stripped out.

.NET Framework Security

See Also

Reference

DataSource Class

SetConnection Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace