TeamFoundationDatabaseManagementService.SplitDatabase Method
Splits a list of collection hosts out of a database into a new database and returns the desitination database id. Issues should be checked by GetSplitDatabaseIssues ahead of this call. In the event that there are issues when this is called, it will throw AdminValidationException with the detailed list of issues. Only the hosts that were started before the split will be started after the split. On issues, this method throws AdminValidationException or TeamFoundationDatabaseSplitException
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function SplitDatabase ( _
requestContext As TeamFoundationRequestContext, _
sourceDatabaseId As Integer, _
serviceHostIds As Guid(), _
destinationDatabaseName As String, _
logger As ITFLogger _
) As TeamFoundationDatabaseProperties
public TeamFoundationDatabaseProperties SplitDatabase(
TeamFoundationRequestContext requestContext,
int sourceDatabaseId,
Guid[] serviceHostIds,
string destinationDatabaseName,
ITFLogger logger
)
public:
TeamFoundationDatabaseProperties^ SplitDatabase(
TeamFoundationRequestContext^ requestContext,
int sourceDatabaseId,
array<Guid>^ serviceHostIds,
String^ destinationDatabaseName,
ITFLogger^ logger
)
member SplitDatabase :
requestContext:TeamFoundationRequestContext *
sourceDatabaseId:int *
serviceHostIds:Guid[] *
destinationDatabaseName:string *
logger:ITFLogger -> TeamFoundationDatabaseProperties
public function SplitDatabase(
requestContext : TeamFoundationRequestContext,
sourceDatabaseId : int,
serviceHostIds : Guid[],
destinationDatabaseName : String,
logger : ITFLogger
) : TeamFoundationDatabaseProperties
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
- sourceDatabaseId
Type: System.Int32
- serviceHostIds
Type: array<System.Guid[]
- destinationDatabaseName
Type: System.String
- logger
Type: Microsoft.TeamFoundation.Common.ITFLogger
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabaseProperties
database properties of the newly created split database. null if failed before copy and register
.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.