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
deploymentRequestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe servicing context.
poolName
Type: System.StringThe name of the pool to assign the database from. Ex: "CollectionDefaultPool"
- logger
Type: Microsoft.TeamFoundation.Common.ITFLogger
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabaseProperties
Returns TeamFoundationDatabaseProperties.
.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.