Share via


TeamFoundationDatabaseSettings.ReadConnectionString Method

This will examine the specified database and retrieve the connection string. If the database is not configured, the then a null value is returned.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public Function ReadConnectionString ( _
    requestContext As TeamFoundationRequestContext, _
    databaseCategory As String _
) As String
public string ReadConnectionString(
    TeamFoundationRequestContext requestContext,
    string databaseCategory
)
public:
String^ ReadConnectionString(
    TeamFoundationRequestContext^ requestContext, 
    String^ databaseCategory
)
member ReadConnectionString : 
        requestContext:TeamFoundationRequestContext * 
        databaseCategory:string -> string
public function ReadConnectionString(
    requestContext : TeamFoundationRequestContext, 
    databaseCategory : String
) : String

Parameters

  • databaseCategory
    Type: System.String

    Specific database to retrieve the connection string for

Return Value

Type: System.String
Returns the connection string if the database is configured. Otherwise it returns null

.NET Framework Security

See Also

Reference

TeamFoundationDatabaseSettings Class

Microsoft.TeamFoundation.Framework.Server Namespace