TeamFoundationDatabaseManagementService.TryGetDatabasePool Method

Gets specified database pool. A return value indicates whether specified database pool exists.

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

Syntax

'Declaration
Public Function TryGetDatabasePool ( _
    requestContext As TeamFoundationRequestContext, _
    poolName As String, _
    <OutAttribute> ByRef pool As TeamFoundationDatabasePool _
) As Boolean
public bool TryGetDatabasePool(
    TeamFoundationRequestContext requestContext,
    string poolName,
    out TeamFoundationDatabasePool pool
)
public:
bool TryGetDatabasePool(
    TeamFoundationRequestContext^ requestContext, 
    String^ poolName, 
    [OutAttribute] TeamFoundationDatabasePool^% pool
)
member TryGetDatabasePool : 
        requestContext:TeamFoundationRequestContext * 
        poolName:string * 
        pool:TeamFoundationDatabasePool byref -> bool
public function TryGetDatabasePool(
    requestContext : TeamFoundationRequestContext, 
    poolName : String, 
    pool : TeamFoundationDatabasePool
) : boolean

Parameters

Return Value

Type: System.Boolean
True if specifed database pool exists. Otherwise, false.

.NET Framework Security

See Also

Reference

TeamFoundationDatabaseManagementService Class

Microsoft.TeamFoundation.Framework.Server Namespace