TeamFoundationDatabaseManagementService.RegisterDatabase Method

Register a new database with the DatabaseManagementService.

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

Syntax

'Declaration
Public Function RegisterDatabase ( _
    requestContext As TeamFoundationRequestContext, _
    connectionString As String, _
    serviceLevel As String, _
    poolName As String, _
    tenants As Integer, _
    maxTenants As Integer, _
    status As TeamFoundationDatabaseStatus, _
    statusChangedDate As Nullable(Of DateTime), _
    statusReason As String, _
    lastTenantAdded As Nullable(Of DateTime) _
) As TeamFoundationDatabaseProperties
public TeamFoundationDatabaseProperties RegisterDatabase(
    TeamFoundationRequestContext requestContext,
    string connectionString,
    string serviceLevel,
    string poolName,
    int tenants,
    int maxTenants,
    TeamFoundationDatabaseStatus status,
    Nullable<DateTime> statusChangedDate,
    string statusReason,
    Nullable<DateTime> lastTenantAdded
)
public:
TeamFoundationDatabaseProperties^ RegisterDatabase(
    TeamFoundationRequestContext^ requestContext, 
    String^ connectionString, 
    String^ serviceLevel, 
    String^ poolName, 
    int tenants, 
    int maxTenants, 
    TeamFoundationDatabaseStatus status, 
    Nullable<DateTime> statusChangedDate, 
    String^ statusReason, 
    Nullable<DateTime> lastTenantAdded
)
member RegisterDatabase : 
        requestContext:TeamFoundationRequestContext * 
        connectionString:string * 
        serviceLevel:string * 
        poolName:string * 
        tenants:int * 
        maxTenants:int * 
        status:TeamFoundationDatabaseStatus * 
        statusChangedDate:Nullable<DateTime> * 
        statusReason:string * 
        lastTenantAdded:Nullable<DateTime> -> TeamFoundationDatabaseProperties
public function RegisterDatabase(
    requestContext : TeamFoundationRequestContext, 
    connectionString : String, 
    serviceLevel : String, 
    poolName : String, 
    tenants : int, 
    maxTenants : int, 
    status : TeamFoundationDatabaseStatus, 
    statusChangedDate : Nullable<DateTime>, 
    statusReason : String, 
    lastTenantAdded : Nullable<DateTime>
) : TeamFoundationDatabaseProperties

Parameters

  • connectionString
    Type: System.String

    The connection string to the database.

  • serviceLevel
    Type: System.String

    The service level of the database.

  • tenants
    Type: System.Int32

    The current number of tenants in the database.

  • maxTenants
    Type: System.Int32

    The maximum number of tenants allowed in the database.

  • statusReason
    Type: System.String

    The reason for the status (empty is ok).

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabaseProperties
The id for the database.

.NET Framework Security

See Also

Reference

TeamFoundationDatabaseManagementService Class

Microsoft.TeamFoundation.Framework.Server Namespace