TeamFoundationDatabaseManagementService.CreateDatabasePool Method

Create a new database pool definition.

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

Syntax

'Declaration
Public Sub CreateDatabasePool ( _
    requestContext As TeamFoundationRequestContext, _
    type As TeamFoundationDatabaseType, _
    collation As String, _
    poolName As String, _
    initialCapacity As Integer, _
    createThreshold As Integer, _
    growBy As Integer, _
    size As Integer, _
    servicingOperations As String, _
    maxDatabaseLimit As Integer _
)
public void CreateDatabasePool(
    TeamFoundationRequestContext requestContext,
    TeamFoundationDatabaseType type,
    string collation,
    string poolName,
    int initialCapacity,
    int createThreshold,
    int growBy,
    int size,
    string servicingOperations,
    int maxDatabaseLimit
)
public:
void CreateDatabasePool(
    TeamFoundationRequestContext^ requestContext, 
    TeamFoundationDatabaseType type, 
    String^ collation, 
    String^ poolName, 
    int initialCapacity, 
    int createThreshold, 
    int growBy, 
    int size, 
    String^ servicingOperations, 
    int maxDatabaseLimit
)
member CreateDatabasePool : 
        requestContext:TeamFoundationRequestContext * 
        type:TeamFoundationDatabaseType * 
        collation:string * 
        poolName:string * 
        initialCapacity:int * 
        createThreshold:int * 
        growBy:int * 
        size:int * 
        servicingOperations:string * 
        maxDatabaseLimit:int -> unit
public function CreateDatabasePool(
    requestContext : TeamFoundationRequestContext, 
    type : TeamFoundationDatabaseType, 
    collation : String, 
    poolName : String, 
    initialCapacity : int, 
    createThreshold : int, 
    growBy : int, 
    size : int, 
    servicingOperations : String, 
    maxDatabaseLimit : int
)

Parameters

  • collation
    Type: System.String

    The collation of the databases in the pool.

  • poolName
    Type: System.String

    The name of the pool. These must be unique.

  • initialCapacity
    Type: System.Int32

    The initial capacity of tenants new databases in the pool will be set with.

  • createThreshold
    Type: System.Int32

    If the available tenant vacancy in the pool falls below this value more databases will be created.

  • growBy
    Type: System.Int32

    The number of new databases created when the createThreashold is crossed.

  • size
    Type: System.Int32

    The size allocated for databases that are created to fill the pool.

  • servicingOperations
    Type: System.String

    The servicing operations run on newly created databases. These operations lay down the schema of the new database.

  • maxDatabaseLimit
    Type: System.Int32

    The maximum size the pool can grow to. Attempts to register databases with the pool will fail if this size is reached.

.NET Framework Security

See Also

Reference

TeamFoundationDatabaseManagementService Class

Microsoft.TeamFoundation.Framework.Server Namespace