Partager via


TeamFoundationDatabaseManagementService.ReleaseDatabasePartition Method

Decrement the current tenant count on a database. This call should be made if AcquireDatabase was succefully called previously, but the caller either failed or no longer needs the database.

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

Syntax

'Declaration
Public Sub ReleaseDatabasePartition ( _
    requestContext As TeamFoundationRequestContext, _
    databaseId As Integer, _
    partitionDeleted As Boolean _
)
public void ReleaseDatabasePartition(
    TeamFoundationRequestContext requestContext,
    int databaseId,
    bool partitionDeleted
)
public:
void ReleaseDatabasePartition(
    TeamFoundationRequestContext^ requestContext, 
    int databaseId, 
    bool partitionDeleted
)
member ReleaseDatabasePartition : 
        requestContext:TeamFoundationRequestContext * 
        databaseId:int * 
        partitionDeleted:bool -> unit
public function ReleaseDatabasePartition(
    requestContext : TeamFoundationRequestContext, 
    databaseId : int, 
    partitionDeleted : boolean
)

Parameters

  • databaseId
    Type: System.Int32

    The id of the database to lower the tenant count on.

  • partitionDeleted
    Type: System.Boolean

    True if a partition is being released because it is marked for deletion. This is used to signal a cleanup job.

.NET Framework Security

See Also

Reference

TeamFoundationDatabaseManagementService Class

Microsoft.TeamFoundation.Framework.Server Namespace