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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextRequest context of the caller.
connectionString
Type: System.StringThe connection string to the database.
serviceLevel
Type: System.StringThe service level of the database.
- poolName
Type: System.String
tenants
Type: System.Int32The current number of tenants in the database.
maxTenants
Type: System.Int32The maximum number of tenants allowed in the database.
status
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabaseStatusThe status of the database.
- statusChangedDate
Type: System.Nullable<DateTime>
statusReason
Type: System.StringThe reason for the status (empty is ok).
- lastTenantAdded
Type: System.Nullable<DateTime>
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabaseProperties
The id for the database.
.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.