Delen via


TeamFoundationDatabaseManagementService.AcquireDatabasePartition Method

Acquire an available database partition. If an existing database partition is unavailable, new database will be created on demand.

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

Syntax

'Declaration
Public Function AcquireDatabasePartition ( _
    deploymentRequestContext As TeamFoundationRequestContext, _
    poolName As String, _
    logger As ITFLogger _
) As TeamFoundationDatabaseProperties
public TeamFoundationDatabaseProperties AcquireDatabasePartition(
    TeamFoundationRequestContext deploymentRequestContext,
    string poolName,
    ITFLogger logger
)
public:
TeamFoundationDatabaseProperties^ AcquireDatabasePartition(
    TeamFoundationRequestContext^ deploymentRequestContext, 
    String^ poolName, 
    ITFLogger^ logger
)
member AcquireDatabasePartition : 
        deploymentRequestContext:TeamFoundationRequestContext * 
        poolName:string * 
        logger:ITFLogger -> TeamFoundationDatabaseProperties
public function AcquireDatabasePartition(
    deploymentRequestContext : TeamFoundationRequestContext, 
    poolName : String, 
    logger : ITFLogger
) : TeamFoundationDatabaseProperties

Parameters

  • poolName
    Type: System.String

    The name of the pool to assign the database from. Ex: "CollectionDefaultPool"

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabaseProperties
Returns TeamFoundationDatabaseProperties.

.NET Framework Security

See Also

Reference

TeamFoundationDatabaseManagementService Class

Microsoft.TeamFoundation.Framework.Server Namespace