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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextDeployment request context.
poolName
Type: System.StringThe name of the database pool.
pool
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabasePool%When this method returns, contains a database pool information or null if the specified database pool does not exist.
Return Value
Type: System.Boolean
True if specifed database pool exists. Otherwise, false.
.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.