Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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: StringThe Provider name for the data source.
connection
Type: StringThe Connection string to set for this data source.
connectionDisplayValue
Type: StringThe 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.