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
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
databaseCategory
Type: System.StringSpecific 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
- 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.