Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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: System.String
The Provider name for the data source.
- connection
Type: System.String
The Connection string to set for this data source.
- connectionDisplayValue
Type: System.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
- 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.