TeamFoundationDatabaseSettings.SetConnectionString Method
This will set the connection string for a specified database. This immediately clears the cache.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Sub SetConnectionString ( _
requestContext As TeamFoundationRequestContext, _
databaseCategory As String, _
connectionString As String _
)
public void SetConnectionString(
TeamFoundationRequestContext requestContext,
string databaseCategory,
string connectionString
)
public:
void SetConnectionString(
TeamFoundationRequestContext^ requestContext,
String^ databaseCategory,
String^ connectionString
)
member SetConnectionString :
requestContext:TeamFoundationRequestContext *
databaseCategory:string *
connectionString:string -> unit
public function SetConnectionString(
requestContext : TeamFoundationRequestContext,
databaseCategory : String,
connectionString : String
)
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
databaseCategory
Type: System.StringSpecific database to set connection string
connectionString
Type: System.StringNew connection string
.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.