共用方式為


TeamFoundationDatabaseManagementService.CreateDatabasePool 方法

建立新的資料庫集區定義。

命名空間:  Microsoft.TeamFoundation.Framework.Server
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

'宣告
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
)

參數

  • collation
    型別:System.String
    資料庫的定序放在集區中的。
  • poolName
    型別:System.String
    集區的名稱。這些都必須是唯一的。
  • initialCapacity
    型別:System.Int32
    雖然新資料庫的物件在集區中所設定的。
  • createThreshold
    型別:System.Int32
    如果在集區可用空間雖然在這個位置值詳細資料庫中建立。
  • growBy
    型別:System.Int32
    建立的新資料庫的數目,則 createThreashold 交叉。
  • size
    型別:System.Int32
    會建立用來填入資料集的資料庫配置的大小。
  • servicingOperations
    型別:System.String
    在新建立的資料庫上執行的服務作業。這些作業加上新資料庫的結構描述。
  • maxDatabaseLimit
    型別:System.Int32
    或使用的 Managed 堆積大小上限。如果這個大小為止,嘗試簽入與或使用的資料庫會失敗。

.NET Framework 安全性

請參閱

參考

TeamFoundationDatabaseManagementService 類別

Microsoft.TeamFoundation.Framework.Server 命名空間