Delen via


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

  • databaseCategory
    Type: System.String

    Specific database to set connection string

.NET Framework Security

See Also

Reference

TeamFoundationDatabaseSettings Class

Microsoft.TeamFoundation.Framework.Server Namespace