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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
type
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabaseTypeThe type of the databases in the pool.
collation
Type: System.StringThe collation of the databases in the pool.
poolName
Type: System.StringThe name of the pool. These must be unique.
initialCapacity
Type: System.Int32The initial capacity of tenants new databases in the pool will be set with.
createThreshold
Type: System.Int32If the available tenant vacancy in the pool falls below this value more databases will be created.
growBy
Type: System.Int32The number of new databases created when the createThreashold is crossed.
size
Type: System.Int32The size allocated for databases that are created to fill the pool.
servicingOperations
Type: System.StringThe servicing operations run on newly created databases. These operations lay down the schema of the new database.
maxDatabaseLimit
Type: System.Int32The maximum size the pool can grow to. Attempts to register databases with the pool will fail if this size is reached.
.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.