Delen via


ServicingContext.GetConnectionString Method

Gets connection string for the specified logical database. If connection string for the specified category is not defined and fallbackOnFramework is true, Framework connection string is returned.

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

Syntax

'Declaration
Public Function GetConnectionString ( _
    category As String, _
    fallbackOnFramework As Boolean _
) As String
public string GetConnectionString(
    string category,
    bool fallbackOnFramework
)
public:
String^ GetConnectionString(
    String^ category, 
    bool fallbackOnFramework
)
member GetConnectionString : 
        category:string * 
        fallbackOnFramework:bool -> string
public function GetConnectionString(
    category : String, 
    fallbackOnFramework : boolean
) : String

Parameters

Return Value

Type: System.String
Returns String.

.NET Framework Security

See Also

Reference

ServicingContext Class

Microsoft.TeamFoundation.Framework.Server Namespace