ITeamProjectCollectionServicing.QueueDetachCollection Method (TeamProjectCollection, IDictionary<String, String>, String, String)

Queues the detach operation for the collection.

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

ServicingJobDetail QueueDetachCollection(
	TeamProjectCollection teamProjectCollection,
	IDictionary<string, string> servicingTokens,
	string collectionStoppedMessage,
	out string detachedConnectionString
)

Parameters

teamProjectCollection
Type: Microsoft.TeamFoundation.Framework.Client.TeamProjectCollection

The team project collection to detach.

servicingTokens
Type: System.Collections.Generic.IDictionary<String, String>

The message to show for requests that hit this collection since it will be taken offline if it isn't already.

collectionStoppedMessage
Type: System.String

If true, the collection data will be prepared for attach and left attached to the current TFS Instance.

detachedConnectionString
Type: System.String

The connection string to the database of the detached collection.

Return Value

Type: Microsoft.TeamFoundation.Framework.Client.ServicingJobDetail
Returns the servicing job result which contains the job and host Id

Show: